Tricky or not ? upload & rename, store image-filenames in database
| From: | helmut ott | Date: | Tue, 16 May 2000 13:46:26 +0000 |
| Subject: | Tricky or not ? upload & rename, store image-filenames in database | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-96@lists.php.net to get a copy of this message | ||
Tricky or not ?
(I use php3, unix, apache, mysql)
Can anybody give advice how can this can be done?
I want to upload images together with other data of a record and store the data together with the
related fileNAMES.in 1 mysql-record.
1. First the data part of the record is entered (form1=data) and stored.
2. After the dataform was submitted from this dataform a image-upload form (form2=imagedata) should
be called
.
3. The imagefiles shall be browsed on the local filesystem (using <input type=file ....> for
each image-file
4. BUT then the file shall be stored renamed to a filename consisting of the ID of the previously
entered data-record plus a sequential image-number).
Thanks for pointing a way or hints about resembling samples
Helmut Ott