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

From: Date: Mon, 26 Sep 2005 23:22:47 +0000
Subject: RE: [PHP-DB] Upload images with minimun effort from final user
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-40382@lists.php.net to get a copy of this message
Its pretty simple, the section in the manual has lots of detail on handling file uploads. The file's name is accessible thru $name = $_FILES['formFieldName']['name']; In this case, I would also suggest that you create the name of the image to store it on the file system..otherwise you may end up with N number of files with the same name (ie mycat.jpg). By associating another randomly generated name with the image as the true name, you should avoid that issue... Bastien
From: "David Arroyo" <darroyo@telcomunity.com> To: <php-db@lists.php.net> Subject: [PHP-DB] Upload images with minimun effort from final user Date: Mon, 26 Sep 2005 19:48:24 +0200 Hi @ll, I have to make an interface for a newspaper site, where users can upload news including images. I want to store the image's name in a field of my NEWS table, in order to catch it with an <img> tag later, but I don't want people has to upload the image, remember its name, and put it as another field in the form. Can anyone help me with an example, tutorial or any idea? Thanks in advance, David.


« previous php.db (#40382) next »