Workaround for already existing filename
Posted: 10 Oct 2014, 11:19
Hello together,
I need some help, to customize any file(s) which are responsible for the upload process.
When you try to upload an image which has the same filename that already exists on the server in usersfolder, you will get an error and the upload doesn't work. If I get this error during upload, I know how to handle it. But there are some other users who use the upload process and don't know how to handle it. I will try to solve this problem in the backend.
My suggestion is, to add a number at the end of the original filename. The best thing would be to add the current date and maybe time without any special caracters. "filename_currentdate.jpg"
Is it generally possible to include the current date in the filename?
Which file does handle the filename during upload? Maybe we can add some lines there?
It would be great, if anyone has an idea. I think this solution will help more people than only me.
Thanks a lot and best regards.
I need some help, to customize any file(s) which are responsible for the upload process.
When you try to upload an image which has the same filename that already exists on the server in usersfolder, you will get an error and the upload doesn't work. If I get this error during upload, I know how to handle it. But there are some other users who use the upload process and don't know how to handle it. I will try to solve this problem in the backend.
My suggestion is, to add a number at the end of the original filename. The best thing would be to add the current date and maybe time without any special caracters. "filename_currentdate.jpg"
Is it generally possible to include the current date in the filename?
Which file does handle the filename during upload? Maybe we can add some lines there?
It would be great, if anyone has an idea. I think this solution will help more people than only me.
Thanks a lot and best regards.