javascript - Upload component selects a file and does not upload it immediately
PHP中文网2017-05-19 10:13:15
0
4
636
antd's Upload component, I want to not upload the file immediately after selecting it, but upload it together after I press the save button. How to do this?
Use beforeUpload to store the things to be uploaded in the store (state can also be used), and finally return false to prevent uploading.
When submitting, append file to FormData
After you select the file, base64 will be displayed. Just save it together when you click Save
Has the question been solved?
I have the same question, lz I want to share it. I also encountered a requirement that I don’t want to upload it immediately. How can I do it?