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} } - +