Jump to content

jeff42

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jeff42's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I'm new to php, learning as I go. I'm trying to write a simple file checking function to verify that an uploaded file is a zip file. It works fine for Mac users but not for Windows users. I have no idea why this is happening. Here's a piece of my code: if($img_type == "application/zip"){ // COPY FILE TO DIRECTORY copy($img_data, $path . $new_image_name); After much frustration, I changed the first line to this: if("1"){ ... and then everything else works as it should. The file gets moved to the right directory, etc. For some reason it's not recognizing zip files created on Windows machines, at least not with the code I'm using. Any ideas? Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.