Closed jordic closed 4 years ago
For @upload
, just send the binary data as the body--that's it.
It's also the same with postman--just select the file you want to upload and it sends it as the body of the request.
Yup, found it.. it's more a thing around file objects and js.. also found that grange-core is sending them as uuencode strings.. any reason for that? https://github.com/guillotinaweb/grange-core/blob/master/projects/grange-core/src/lib/resource.service.ts#L101
Not pretty sure but I also have to fix the content-type, with a header. Later after downloading the file I also has to revert the uuencode thing.. :/
it's not converting to unicode, it's converting to base64.
I imagine that's when you want to update the field value directly in a PATCH instead of using the @upload
endpoint? \cc @ebrehault
yup, thought the gmi should work directly with bytes.. (closing for the moment)
It's not so clear how it works from docs: