3

I have an image taken from an older digital camera, around 4MB in size and type "image/jpeg".

When I submit it through a form and look at var_dump($_FILES); the array is as follows:

array(1) { 
    ["userfile"]=> array(5) { 
        ["name"]=> string(12) "IMGP0004.JPG" 
        ["type"]=> string(0) "" 
        ["tmp_name"]=> string(0) "" 
        ["error"]=> int(1) 
        ["size"]=> int(0) 
    }
}

I'm wondering if there is a reason it isn't picking up the file type and also detecting file size as 0. Other files echo out all correct information.

4

1 回答 1

8

error属性设置为1,这意味着

值:1;上传的文件超过了 php.ini 中的 upload_max_filesize 指令。

错误代码在这里解释。

于 2013-02-12T12:56:58.367 回答