SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Non-Member
    Join Date
    Oct 2005
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Non-Member
    Join Date
    Oct 2005
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In case this helps anyone, I figured it out. My max file size input on the form was set too low.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •