Var_dump ($ _ FILES) results in an empty ["type"] for a specific image
I have an image taken from an old digital camera about 4MB in size and type "image / jpeg".
When I submit it through the form and look var_dump($_FILES);
, the array looks like this:
array(1) {
["userfile"]=> array(5) {
["name"]=> string(12) "IMGP0004.JPG"
["type"]=> string(0) ""
["tmp_name"]=> string(0) ""
["error"]=> int(1)
["size"]=> int(0)
}
}
I am wondering if there is a reason why it is not picking up the file type and also specifying the file size as 0. Other files display all the correct information.
+3
source to share