SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot xPox's Avatar
    Join Date
    Sep 2005
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $_FILES Type unknown

    Does anyone know why some files do not display a mime type when using $_FILES["filename"]["type"]?

    I have a page that uploads a file, and I want to check to make sure the image is a jpg. Some jpgs show up as "image/pjpeg" and others show up as nothing. Does this depend on how the jpg was created?

  2. #2
    SitePoint Guru enygmadae's Avatar
    Join Date
    Sep 2002
    Location
    Dallas, Tx.
    Posts
    795
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it should be "image/jpg" or "image/jpeg"...
    PHP News, Views and Community: http://www.phpdeveloper.org


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
  •