Azure Blob Storage upload fails on Android - with solution
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 64/100
Research direction
Start in UploadWorker.java around line 142 and compare how the Android implementation builds the request body with the issue's proposed change. Check the Flutter and iOS upload paths for the expected header behavior, then verify that Azure Blob Storage accepts Android uploads without the header being modified.
Written by the indexing model from the issue text.
Description
Hi there! The Android implementation changes the header – causing services like the Azure blob storage to reject uploads as the header is modified. The iOS implementation does not do this. In my opinion the header should only be set in the Flutter code.
Our solution was to just modify line 142 in UploadWorker.java:
innerRequestBody = RequestBody.create(file, contentType);
to
innerRequestBody = RequestBody.create(file, null);
Maybe this helps somebody.
- Dominant language
- Dart
- Stars
- 217
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fluttercommunity/flutter_uploader
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
fluttercommunity/flutter_uploader#266 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
fluttercommunity/flutter_uploader#265 · 7 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
All issues in fluttercommunity/flutter_uploader
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
code quality good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Suwayomi/Suwayomi-Tsumiru#479 ·
-
Build Failure: agora_rtc_engine compiled against android-31 while dependencies require android-34+ Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
conceptadev/noir#95 ·