Page 1 of 1
Upload file overwrite warning
Posted: 24 Dec 2013, 02:08
by arpeggio
When a file is uploaded using the same file name and description, does a warning ever pop up saying "You are about to overwrite a file"
I can upload and overwrite a file but there is never a warning stating you are about to overwrite one. Am I missing something?
Thank you in advance....
Re: Upload file overwrite warning
Posted: 24 Dec 2013, 02:44
by Jan
Hi, you can set in Options:
- that files can be overwritten
- or that they will be not overwritten
but in php upload process there cannot such warning as when you upload some file to server, it is there so warning message will be not useful - so such needs to be customize somehow - e.g. upload a file and when the file exists - upload it on other place and return to some other site where you will write: overwrite existing file: yes or no and then back to the php server script which then will remove such uploaded file (when NO is set) or will write it on the server with the current name (when Yes is set)
Jan
Re: Upload file overwrite warning
Posted: 24 Dec 2013, 18:19
by arpeggio
Thank you for your quick response! Do you know what file needs to be edited to make those changes happen?
Thank you!
New to PHP. Any idea as to the code you would add?
Re: Upload file overwrite warning
Posted: 25 Dec 2013, 01:05
by Jan
Hi, unfortunately, I didn't do such customization yet, so cannot give any clue advice
Jan