How to realize delayed upload by antd upload

the usual file upload is to select a file in the system pop-up window,

clipboard.png
then click the open button to upload the file directly,

now we have a requirement that after the operation in the system pop-up window is completed, the upload will not be carried out, but the list of files to be uploaded will be displayed.
it will not be uploaded until a button to start uploading is clicked.

the question now is how to control whether the file is uploaded or not.


the official has provided a case:


beforeUpload method manually return false , store file in variables (you can save those that have been converted, because the file name needs to be displayed for upload, and js can continue to execute), and send the file where you need it

.
Menu