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.
source is an uploaded file
- upload OK
- file name OK
- source variables
file_src_name : class.zip
file_src_name_body : class
file_src_name_ext : zip
file_src_pathname : /tmp/phpYa84RV
file_src_mime : application/x-zip
file_src_size : 24549 (max= 105906176)
file_src_error : 0
process file to ./files/
- file size OK
application/x-zip, Added that to the array and works fine. Thanks mate!Reply
I'm searching for an upload script which let's me upload files in a zip file. I don't know how I can make this as if I'm a complete noob. So maybe you could share the code you have used perhaps?:$ It would be very helpfull for me.
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? Thanks
source is an uploaded file - upload OK - file name OK - source variables file_src_name : class.zip file_src_name_body : class file_src_name_ext : zip file_src_pathname : /tmp/phpYa84RV file_src_mime : application/x-zip file_src_size : 24549 (max= 105906176) file_src_error : 0 process file to ./files/ - file size OKapplication/x-zip, Added that to the array and works fine. Thanks mate!I'm searching for an upload script which let's me upload files in a zip file. I don't know how I can make this as if I'm a complete noob. So maybe you could share the code you have used perhaps?:$ It would be very helpfull for me.
I hope you can help me with this.
Thanks in advance.