mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
parent
c72c70024e
commit
524c93642c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user