RE: [PHP-DB] douplicate entry
| From: | Russ | Date: | Thu, 29 Aug 2002 07:18:58 +0000 |
| Subject: | RE: [PHP-DB] douplicate entry | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21441@lists.php.net to get a copy of this message | ||
Andy:
If indeed it is the fact that users are clicking the 'upload' button
twice, then you could incoporate a "flood control" script that
dissallows multiple uploads for the same file and same IP Address for a
specific time period (10 seconds perhaps).
I used to have one of these, but have mislaid it. Perhaps you could ask
for one here or go looking at hotscripts.com.
Hope that's of some help...
Russ
-----Original Message-----
From: Andy [mailto:news.letters@gmx.de]
Sent: Thursday, August 29, 2002 3:06 PM
To: php-db@lists.php.net
Subject: [PHP-DB] douplicate entry
Hi guys,
I have a community site running, where members can upload images of
themselves. The images are stored inside blobs of a mysql db.
Now sometimes -no clue how they do it- it happens that I get an errormsg
saying douplicate entry for bla.jpg
I guess they do press the upload button twice or something similar. Of
course there is a unique index on the column.
My question is how to prevent this error?
Thank you for any help on this.
Andy
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php