On the problem that the antd upload component will automatically carry the local path when uploading under IE

< H2 > about the problem that antd upload components automatically carry local paths when uploaded under IE < / H2 >

as shown in figure

under chrome:

clipboard.png

IE

clipboard.png

I don"t want filename to carry a local path. I haven"t tried many ways. Can you teach me one or two?

Jun.26,2022

have you solved


try this. If you encounter the same problem, use the following methods to solve

fileList.forEach(file => {
 formData.append('file', file,file.name);
});
.
Menu