docs: fix demos (#36040)

* docs: fix demos

* ++
This commit is contained in:
kalykun 2022-06-14 14:58:06 +08:00 committed by GitHub
parent c72c70024e
commit 524c93642c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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