From 9863a4888ae80559a2ddcfcbaed5b9a8728f5dbb Mon Sep 17 00:00:00 2001 From: Md Neyaz Ahmad Date: Fri, 18 Mar 2022 09:04:05 +0530 Subject: [PATCH] fix: add original filename when downloading a file --- src/components/AttachmentModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AttachmentModal.js b/src/components/AttachmentModal.js index d1b3672ca13e..2568e634e884 100755 --- a/src/components/AttachmentModal.js +++ b/src/components/AttachmentModal.js @@ -162,7 +162,7 @@ class AttachmentModal extends PureComponent { : this.props.translate('common.attachment')} shouldShowBorderBottom shouldShowDownloadButton={!this.props.isUploadingAttachment} - onDownloadButtonPress={() => fileDownload(sourceURL)} + onDownloadButtonPress={() => fileDownload(sourceURL, this.props.originalFileName)} onCloseButtonPress={() => this.setState({isModalOpen: false})} subtitle={(