RE: [PHP-DB] Re: Upload images with minimun effort from final user. .

2005-09-28 Thread Norland, Martin
as Willerich Cc: php-db@lists.php.net Subject: [PHP-DB] Re: Upload images with minimun effort from final user. . Matthias, The md5 approach is just added security, which is something I always use in situations like this. All it really does is mask it, so a user can't see what the ID is (or th

[PHP-DB] Re: Upload images with minimun effort from final user

2005-09-28 Thread A.J. Brown
Matthias, The md5 approach is just added security, which is something I always use in situations like this. All it really does is mask it, so a user can't see what the ID is (or that it's a sequential number at all) and therefore view images they were not intended to see. For example, if the

[PHP-DB] RE: Upload images with minimun effort from final user

2005-09-27 Thread Matthias Willerich
A.J. Brown: A better solution is to rename the image to the unique ID of the news article it's associated with (assuming there is only one image allowed per article). This helps eliminate the chances of overwriting an existing image without bothering the user with error messages. When I do this,

[PHP-DB] Re: Upload images with minimun effort from final user

2005-09-27 Thread A.J. Brown
You can store the original name of the uploaded file in your news table by extracting it from the variable you use to save the image, so there is no need for the user to input . Check this link: http://us3.php.net/features.file-upload A better solution is to rename the image to the unique ID o

[PHP-DB] Re: Upload images with minimun effort from final user

2005-09-27 Thread Sylvain Gourvil
You have just to rename the image with the news ID ! Perhaps I did not understand correctly your question ? Tell me if you want also an example (in french, sorry) of the upload and rename, etc wioth pear quickform David Arroyo wrote: Hi @ll, I have to make an interface for a newspaper site