Element-ui upload how can only one upload but can overwrite upload ah?

the project requires uploading files, but only one file can be uploaded. I set limit to 1 and found that I can"t continue to upload and overwrite the previous file. Then I set it to 2, and then I judge when the second file is uploaded. If you already have a file, you are prompted to delete the uploaded file, so how to set it to upload only one file, and you can overwrite the previously uploaded file

Dec.23,2021

are you using the wrong example? the document is very clear. Do you think this example can't meet your needs? Take a closer look.
clipboard.png


on-change first erase the original picture

Menu