Skip to content

Commit

Permalink
Merge pull request #31768 from situchan/fix-31763
Browse files Browse the repository at this point in the history
fix android file upload issue

(cherry picked from commit 5fb1e05)
  • Loading branch information
luacmartins authored and OSBotify committed Nov 23, 2023
1 parent 536fa10 commit 3ba0565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/fileDownload/FileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const readFileAsync: ReadFileAsync = (path, fileName, onSuccess, onFailure = ()
}
res.blob()
.then((blob) => {
const file = new File([blob], cleanFileName(fileName));
const file = new File([blob], cleanFileName(fileName), {type: blob.type});
file.source = path;
// For some reason, the File object on iOS does not have a uri property
// so images aren't uploaded correctly to the backend
Expand Down

0 comments on commit 3ba0565

Please sign in to comment.