Page 1 of 1

Avoid uploading duplicate file names

Posted: Mon Jun 04, 2012 5:43 pm
by crowder
Hi,

We want to determine if a filename has been uploaded already by another user. If it has, we do not want to allow the user to upload the file. Any suggestions on how to do this. We are using apache2 and cgi.

Thanks.

Re: Avoid uploading duplicate file names

Posted: Sat Jun 16, 2012 8:10 am
by support
About about the following parameter:
<PARAM NAME="overwrite" VALUE="false">

Applet will send an HTTP HEAD request before uploading to know if file already exists. Your CGI script must handle this HEAD request as done in PHP sample:
http://www.jfileupload.com/products/tools/index.html