-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Hi, I was wondering how to to the same thing in typescript. I get an error with this line:
data.append('photo', {
uri: photo.uri,
type: 'image/jpeg',
name: 'testPhotoName'
});
Because of a type mismatch:
Argument of type '{ uri: string; name: string; type: string; }' is not assignable to parameter of type 'string | Blob'.
Object literal may only specify known properties, and 'uri' does not exist in type 'string | Blob'.
The documentation of FormData.append looks nothing like the code described above. Does anybody have an idea how to solve this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels