-
Why is the file 'type' empty?
Hello,
I have a form for uploading a file. I am having difficulty verifying the type of the file.
I tried printing the array of file[] and I get this:
Array ( [name] => Array ( [0] => Richard Cheese - Hashpipe (Weezer).mp3 ) [type] => Array ( [0] => ) [tmp_name] => Array ( [0] => ) [error] => Array ( [0] => 2 ) [size] => Array ( [0] => 0 ) )
Notice the file type is empty, but I am not sure why.
Strange.
-
In case this helps anyone, I figured it out. My max file size input on the form was set too low.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks