mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +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