> 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to