class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
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; } }
Even though application/zip is allowed on the list. I can upload GIF, JPG, etc uploads just fine.
Here is my upload code:
Any ideas? Thanks