Repository navigation
Weird behaviour of readMultipartFormData on Azure #3304
ThibaultVlacich
started this conversation in
Help Wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm using
readMultipartFormDatalike this in a nitro endpoint :But the rawFile I'm getting seems to be corrupted or something that I can't really explain.
The file I'm uploading is 15Mb. When I'm testing on my local machine in dev mode,
rawFile?.data.byteLengthis correct and equals 14966But when deployed to Azure (SWA + managed function) it's 21794
I genuinely have no idea what could explain this difference. The actual request in the browser is fine, and Content-Length is the same as when I test in local.
Anyone has experience with uploading files to a nitro backend on Azure, who noticed the same behaviour / how to fix it ?
All reactions