Re: note 13634 added to features.file-upload.php
| From: | jeroen@php.net | Date: | Mon, 25 Jun 2001 22:04:55 +0000 |
| Subject: | Re: note 13634 added to features.file-upload.php | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-14637@lists.php.net to get a copy of this message | ||
> OK there is one thing I am getting hung up on with this: Is it possible to
rename the file after upload? In other words say my user wants to upload
SomePic.jpg, but wants it written to the server as SomePic_Mine.jpg. Is
there a way to have it write $userfile to a different name??
This is a html issue. The <input file=> tag doesn't allow what you want. Add
a <input text> in your html for your users.
With some nice javascript, it'll also be filled with the current name upon
picking a file.
jeroen