Re: To be or not to be : safe mode
| From: | Rasmus Lerdorf | Date: | Wed, 04 Jul 2001 01:47:39 +0000 |
| Subject: | Re: To be or not to be : safe mode | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56097@lists.php.net to get a copy of this message | ||
> But I am considering setting it back on and change
> (somehow) the default upload dir to a new one. Since
> move_uploaded_file still works (even with safe_mode) I
> assume I will work but another problem arises.
> The name of the uploded file (which I do not control)
> is something like phpUKXh6R so how to tell the browser
> of the correct mime-type ? I do have the original
> name...
Check the documentation:
http://www.php.net/manual/en/features.file-upload.php
The original mime type is available in $userfile_type or
$HTTP_POST_FILES['userfile']['type']
-Rasmus