You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I am trying to upload an image/jpeg file into my Azure container. My file is 286 025 bytes large, but only first 65 397 bytes get uploaded - after that, the adapter fires my callback and reports a successful operation.
Interesting to note is that the uploaded file is consistently truncated to 65 397 bytes even after multiple attempts.
Here is a short code that I use:
returnnewPromise(functionupload(resolve,reject){// Upload! blobStore contains skipper-azure as adapter and all necessary keys and secretsreq.file('photo').upload(sails.config.connections.blobStore,function(err,files){// Error occured?if(err)returnreject(err)// Did we upload anything?if(!files.length)err=newError('No files uploaded!')returnresolve(files[0])// We only upload one at a time})})
And I upload my file with curl:
curl -X POST -F "photo=@/path/to/test.jpg" http://localhost:000/contacts/1/photo
After that, Sails sends me the expected response and closes the connection normally. Could this be a bug in the module...?
Thanks for any guidance in this matter!
The text was updated successfully, but these errors were encountered:
Hi! I am trying to upload an
image/jpeg
file into my Azure container. My file is 286 025 bytes large, but only first 65 397 bytes get uploaded - after that, the adapter fires my callback and reports a successful operation.Interesting to note is that the uploaded file is consistently truncated to 65 397 bytes even after multiple attempts.
Here is a short code that I use:
And I upload my file with
curl
:curl -X POST -F "photo=@/path/to/test.jpg" http://localhost:000/contacts/1/photo
After that, Sails sends me the expected response and closes the connection normally. Could this be a bug in the module...?
Thanks for any guidance in this matter!
The text was updated successfully, but these errors were encountered: