Reply to .Zip Uploads

.Zip Uploads new!
by Alex, 17 years, 4 months ago
For some reason, when I try to upload a .zip file the script will say: error : Incorrect type of file

Even though application/zip is allowed on the list. I can upload GIF, JPG, etc uploads just fine.

Here is my upload code:
include("class/class.upload.php");
$upload = new upload($_FILES['file']);
if ($upload->uploaded) {
  $upload->process('./files/');
  if ($upload->processed) {
    echo 'File uploaded, taking you to the optional section...';
    $upload->clean();
  } else {
    echo 'error : ' . $upload->error;
  }
}

Any ideas? ThanksReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important