This project uses the springframework: spring-web:6.1.4. It uses the MultipartFile transferTo to upload files. However, after a successful upload, it finds an exception when downloading and then returns the files after follow-up. At that time, the A file was uploaded in the ppt format, but the uploaded file was a Word file that was uploaded 6 days ago and was changed to the ppt format. After looking at the code, I found no need to replace the file. Have you ever experienced this situation?
Comment From: sdeleuze
Please update the description to english in order to allow us to understand it. Please also provide a reproducer as an attached project or a link to a repository if relevant.
Comment From: java-Learner-lx
The project used springframework: spring web: 6.1.4, and uploaded files using MultipartFile transferTo. However, after successfully uploading the files, it was found that the download and opening were abnormal. After following up, a refund was received. At that time, the uploaded file was in PPT format, but the uploaded file was a Word file that was uploaded 6 days ago and was changed to PPT format. After reading the code, no additional file replacement or other processing was done. Have you ever experienced this situation
Comment From: sdeleuze
I am not aware of such issue, and we will need a self contained reproducer to be able to do something, otherwise maybe better to close this issue.
Comment From: java-Learner-lx
We are currently unable to provide a reproducible scenario
Comment From: bclozel
Thanks for letting us know.