diff --git a/src/components/UploadForm.jsx b/src/components/UploadForm.jsx
index 272e365..0fd4ae9 100644
--- a/src/components/UploadForm.jsx
+++ b/src/components/UploadForm.jsx
@@ -5,7 +5,7 @@ import { UploadOutlined } from '@ant-design/icons'
import { upload } from './factory'
import { ErrorFetch } from './ErrorFetch'
-export const UploadForm = memo(({ url, accept, style, formData, onUploadStart, onUploadSuccess, onUploadComplete, onUploadError }) => {
+export const UploadForm = memo(({ url, disabled, accept, style, formData, onUploadStart, onUploadSuccess, onUploadComplete, onUploadError }) => {
const [fileList, setfileList] = useState([])
const handleFileSend = async () => {
@@ -27,6 +27,8 @@ export const UploadForm = memo(({ url, accept, style, formData, onUploadStart, o
onUploadSuccess?.()
}
} catch(error) {
+ if(process.env.NODE_ENV === 'development')
+ console.error(error)
onUploadError?.(error)
} finally {
setfileList([])
@@ -40,10 +42,11 @@ export const UploadForm = memo(({ url, accept, style, formData, onUploadStart, o
setfileList(props.fileList)}
>
-
+