Closed
Description
I wanted to send file's content to the server, and it expects a
'Content-Type': 'application/octet-stream'
But even when setting it in the $upload.upload() (setting the 'headers'), it gets overridden.
Daniel answer for this:
$upload.upload() need to have the content type formdata-multipart for the server to be able to decode the content of the request so you cannot change that.
For that purpose, we should use the $upload.http() call, as here:
See this: #88 (comment)
Metadata
Metadata
Assignees
Labels
No labels