Auto rename for uploaded files with the same name
Describe the bug When uploading files with the same file name and type, there's a chance na 1 file will have random characters added to its original filename.
To Reproduce Steps to reproduce the behavior:
- Create form with an filefield.
- Submit form with attached file "silver caddy.pdf"
- Submit another form with the same file "silver caddy.pdf"
- Check each form, there's a chance that the 2nd file will have a random character on its filename.
Expected behavior There should be no random characters on the file name.
Screenshots
Hi
This might be complicated to resolve because the files are uploaded once when the user fills and submit the form, then the plugin dies many things to emulate a second upload when a target is created.
As this is just an annoyance, I'll focus on more impacting issues first.
Hi
I agree, can this be handled by the plugin itself or this will be resolved on the glpi level?
I don't know, a code analysis is required first.
The plugin needs to handle the random string of files in the upload process. I'm suspecting thar your use case needs a deep analysis with a debug session.