How to customize the upload action of ant design's upload?

1. Scenario reproduction: After the user clicks the "Upload" button, the file is not uploaded to the server immediately. When the user clicks the "Save" button, the form data is submitted together with the file type.

Facing the problem: The upload tag asks to upload the file to the server when the dialog box is opened to select the file. Then when the form submits. In this way, the file is uploaded twice, wasting traffic.


2. Nested tables of ant design.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325506126&siteId=291194637