-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prevent overwriting if uploaded file already exists #138
Comments
IE11 aborts upload after 30s #137
@crispyduck00 , added your suggestion. check with latest. |
@prasathmani , great solution simply adding the date! Maybe there should be a configurable filename limit for uploads: Thanks! |
It would be nice, if this feature is configurable; So we can turn it off and it actually overwrites the files. |
IE11 aborts upload after 30s prasathmani#137
When a file is uploaded which name already exists, the existing file is overwritten without any warning.
To prevent overwriting existing files a (n) can be added to the filename of the newly uplodad file. Where n is a ongoing number starting with 0.
So for example if "file.zip" exists already in the upload path, rename the newly uploaded "file.zip" to "file (0).zip". If again the same filename is uploaded, rename it to "file (1).zip and so on.
This could be easylie archifed by adding following code bevore the "move_upload_file()" function:
regards,
crispyduck
The text was updated successfully, but these errors were encountered: