In the beforeUpload function in the Upload component of antd, can you replace the current file after file, upload processing after processing the file?

in the beforeUpload function of the upload component of antd, the picture is compressed, but the original file is still uploaded when uploading, how to replace the current file, and the uploaded file

Mar.13,2021

is there a solution?

Menu