Skip to content

Commit

Permalink
Merge pull request #22903 from alitoshmatov/22897/upload-avatar-regre…
Browse files Browse the repository at this point in the history
…ssion

Added creating uri in on file picked
  • Loading branch information
Li357 authored Jul 14, 2023
2 parents 08a1984 + d687857 commit 2c36599
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/AttachmentPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function AttachmentPicker(props) {
const file = e.target.files[0];

if (file) {
file.uri = URL.createObjectURL(file);
onPicked.current(file);
}

Expand Down

0 comments on commit 2c36599

Please sign in to comment.