Re: Problem with uploading file using FireFox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Richard Kurth-2 wrote:
> 
> I know this is not a PHP problem it is a Browser problem but I need a
> workaround to make this work. So I can finishing my php script
> Using  this to select the file and path
>  
> <form action="test7.php" method="post">
>      <input type="file" name="uploadfile" id="original" size="60"><BR>
>     <BR>
>     <input type="submit" name="submit" value="UPLOAD">
> </FORM>
>  
> My problem I Internet explore this will produce
> C:\directory\directory\uploaded.file
> But it FireFox,Netscape and Opery it will only give me
> uploaded.file
> How do I get the Path for this upload in these browsers
> 
> 
you are missing the 
enctype="multipart/form-data"
part in your <form tag.
If you put
echo '<pre>';
print_R($_POST);
print_R($_FILES);
into your test7.php file, you will get someting like 
....Array
(
    [uploadfile] => Array
        (
            [name] => BEO.bak.htm
            [type] => text/html
            [tmp_name] => D:\tmp\php\php179.tmp
... using FireFox which you can use for 
http://de.php.net/manual/en/function.move-uploaded-file.php then.

-- 
View this message in context: http://www.nabble.com/Problem-with-uploading-file-using-FireFox-tf3625091.html#a10122975
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux