Skip to content

Commit

Permalink
Merge pull request #14823 from Pujan92/fix/upload-profile-pic-14757
Browse files Browse the repository at this point in the history
(cherry picked from commit 2a8e6a8)
  • Loading branch information
thienlnam authored and OSBotify committed Feb 3, 2023
1 parent 39d4d8f commit 10d6cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AttachmentPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class AttachmentPicker extends React.Component {

if (file) {
const cleanName = FileUtils.cleanFileName(file.name);
file.uri = URL.createObjectURL(file);
if (file.name !== cleanName) {
file = new File([file], cleanName);
}
file.uri = URL.createObjectURL(file);
this.onPicked(file);
}

Expand Down

0 comments on commit 10d6cdb

Please sign in to comment.