Avoid uploading duplicate file names

Upload core product.
Post Reply
crowder
Posts: 10
Joined: Tue Mar 15, 2011 8:58 pm

Avoid uploading duplicate file names

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Avoid uploading duplicate file names

Post 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

Post Reply