From e5f3b51baf131b712fa778231ebd57da6ba08725 Mon Sep 17 00:00:00 2001 From: BrtqKr Date: Fri, 9 Aug 2024 10:57:08 +0200 Subject: [PATCH] fix file format --- src/components/AttachmentPicker/index.native.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/AttachmentPicker/index.native.tsx b/src/components/AttachmentPicker/index.native.tsx index 0a14d18a2324..edcdabed9101 100644 --- a/src/components/AttachmentPicker/index.native.tsx +++ b/src/components/AttachmentPicker/index.native.tsx @@ -174,8 +174,10 @@ function AttachmentPicker({type = CONST.ATTACHMENT_PICKER_TYPE.FILE, children, s if (isHEIC && targetAssetUri) { manipulateAsync(targetAssetUri, [], {format: SaveFormat.JPEG}) .then((manipResult) => { + const uri = manipResult.uri; const convertedAsset = { - uri: manipResult.uri, + uri, + name: uri.substring(uri.lastIndexOf('/') + 1).split('?')[0], type: 'image/jpeg', width: manipResult.width, height: manipResult.height,