diff --git a/components/upload/demo/upload-manually.md b/components/upload/demo/upload-manually.md index c98e30a400..ff1141032b 100644 --- a/components/upload/demo/upload-manually.md +++ b/components/upload/demo/upload-manually.md @@ -26,7 +26,7 @@ const App: React.FC = () => { const handleUpload = () => { const formData = new FormData(); fileList.forEach(file => { - formData.append('files[]', file.originFileObj as RcFile); + formData.append('files[]', file as RcFile); }); setUploading(true); // You can use any AJAX library you like