Upload file overwrite warning

Phoca Download - download manager
arpeggio
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Apr 2011, 20:20

Upload file overwrite warning

Post 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....
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload file overwrite warning

Post 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
If you find Phoca extensions useful, please support the project
arpeggio
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Apr 2011, 20:20

Re: Upload file overwrite warning

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload file overwrite warning

Post by Jan »

Hi, unfortunately, I didn't do such customization yet, so cannot give any clue advice :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply