Skip to content

Commit 3ba0565

Browse files
luacmartinsOSBotify
authored andcommitted
Merge pull request #31768 from situchan/fix-31763
fix android file upload issue (cherry picked from commit 5fb1e05)
1 parent 536fa10 commit 3ba0565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/fileDownload/FileUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const readFileAsync: ReadFileAsync = (path, fileName, onSuccess, onFailure = ()
165165
}
166166
res.blob()
167167
.then((blob) => {
168-
const file = new File([blob], cleanFileName(fileName));
168+
const file = new File([blob], cleanFileName(fileName), {type: blob.type});
169169
file.source = path;
170170
// For some reason, the File object on iOS does not have a uri property
171171
// so images aren't uploaded correctly to the backend

0 commit comments

Comments
 (0)