The front end can change the name of the file?

new File (); pass in three parameters. Although the second parameter can pass in the changed file name, the size of the reconstructed file object is obviously different from that uploaded?

Jan.26,2022

was originally written in the change event, and the second parameter must be written like this:

//new Date().getTime()
var file = new File([files[0]], new Date().getTime() + "_pic.jpg", {
            type: files[0].type
});
Menu