How to get server callback after uploading the Upload component of antd?

Business requirement is that after uploading an image, the backend returns a string of id, frontend, which needs to be inserted into the img tag with this id stitching path for display.

the problem encountered is that the image has been uploaded successfully, but the callback function of the Upload component can only tell whether the upload is successful or not. It seems that the returned data from the server cannot be obtained. What should I do?

clipboard.png

this is the Upload document: http://lucifier129.github.io/.

Feb.27,2021

what is returned by your server


solves the problem that it is not the Upload component, but the mismatch between the name parameters and the backend.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beffba-31ca5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beffba-31ca5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?