Skip to content

Commit

Permalink
Merge pull request Expensify#48441 from Expensify/revert-48241-fix/47…
Browse files Browse the repository at this point in the history
…646-disable-preview-while-uploading

Revert "Disable attachment preview until it's uploaded"
  • Loading branch information
srikarparsi authored Sep 3, 2024
2 parents 2c04129 + 7599a4b commit 0e9f918
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4052,8 +4052,7 @@ function getUploadingAttachmentHtml(file?: FileObject): string {

// file.type is a known mime type like image/png, image/jpeg, video/mp4 etc.
if (file.type?.startsWith('image')) {
// optimistic image will have its preview disabled until we receive the (compressed if too big) image from the BE
return `<img src="${file.uri}" alt="${file.name}" ${dataAttributes} data-expensify-preview-modal-disabled="true" />`;
return `<img src="${file.uri}" alt="${file.name}" ${dataAttributes} />`;
}
if (file.type?.startsWith('video')) {
return `<video src="${file.uri}" ${dataAttributes}>${file.name}</video>`;
Expand Down

0 comments on commit 0e9f918

Please sign in to comment.