Posted by Paul Lautman on 01/14/08 23:08
yawnmoth wrote:
> I'm trying to write a script that'll let me upload a *.xls file and am
> having some difficulties. Here are the contents of $_FILE:
>
> Array
> (
> [filename] => Array
> (
> [name] => filename.xls
> [type] =>
> [tmp_name] =>
> [error] => 2
> [size] => 0
> )
> )
>
> As you can observe, there's no tmp_name set and error is set to 2.
> What does this mean? How can I fix it? There doesn't seem to be a
> whole lot of documentation on it on php.net:
>
> http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.files
>
> Thanks!
> Array ( [filename] => Array ( [name] => filename.xls [type] =>
> [tmp_name] => [error] => 2 [size] => 0 ) )
I went to google and typed
php file upload errors
and clicked "I'm Feeling Lucky" and was taken straight to a page of the
manual with a link right at the top entitled "Error Messages Explained"
Was that really beyond you?
[Back to original message]
|