What kind of encryption is used by default or base64 is used by Ant Design of React to upload files on Upload?

problem description

I used antddesign to write a demo, for uploading a file and found that after the upload was successful, the server also received it, but returned a string of things whether the file name saved by base64, is also the same string. Both Chinese and English file names are uploaded as a string of
formData

.

related codes

let upload = multer ({dest:"./public/uploads"});
app.use (express.static (". / public"));
app.post ("/ upload", upload.single ("files"), (req, res) = > {

)
res.send("./uploads/" + req.file.filename)

})

what result do you expect? What is the error message actually seen?

I want to know how to solve this problem and return it to the original filename,. It would be better if you could tell me how it works as an upload component ^ _ ^

Oct.16,2021

this probably doesn't have much to do with antd. The filename in the form-data you sent is normal. I think the multer of the backend express automatically renamed the file name. I'm not familiar with this. I can look for the configuration items of this module clipboard.png

Menu