From 24f915ee55f6991ff2b45afc1f054e607ff46849 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 16 Apr 2024 15:46:33 +0100 Subject: [PATCH] upload error message bud fixed --- src/components/attachmentCom/AttachFile.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/attachmentCom/AttachFile.jsx b/src/components/attachmentCom/AttachFile.jsx index 7b6b294..60e7725 100644 --- a/src/components/attachmentCom/AttachFile.jsx +++ b/src/components/attachmentCom/AttachFile.jsx @@ -37,7 +37,7 @@ export default function AttachFile({data='', fontSize='text-sm', showOnData=fals } axios.post(`${process.env.REACT_APP_MEDIA_LINK}/upload/task`,formData).then(res => { - if(res.data.status < 1){ + if(res.data.internal_return < 0){ inputFile.current.value = null setRequestStatus({loading: false, status:false, message:'upload failed'}) setTimeout(()=>{ @@ -84,7 +84,7 @@ export default function AttachFile({data='', fontSize='text-sm', showOnData=fals {requestStatus.message} } - +