Binary upload header 'Content-Disposition' is not encoded properly
Closed this issue · 2 comments
Ansis100 commented
The header parameter filename
in multipartUpload
is properly encoded:
background_downloader/lib/src/desktop/upload_isolate.dart
Lines 134 to 137 in 0fd4756
However, in binaryUpload
it is not:
background_downloader/lib/src/desktop/upload_isolate.dart
Lines 52 to 53 in 0fd4756
Which leads to "Invalid HTTP header" errors when trying to upload files with non-latin characters.
Ansis100 commented
I didn't notice that browserEncode
does not actually perform encoding but only replaces some characters. I'm guessing we would need to use Uri.encodeComponent
.
781flyingdutchman commented
Included in V8.5.6