Not uploading most files
patriotfan |
|
---|---|
Hi.
I installed Cotonti for a little project of mine. I am having a problem with PFS. I will upload a file (.zip) and I get this: "gnextop_theme.zip : This is not a valid zip file." I have tried other files, and I get the same thing. I even reran the sql for the site and still no luck. It uploads images, but not zips. My Cotonti powered site - [url=http://www.gnextop.patriotfan.co.cc]GnextopCenter[/url]
|
Brock |
|
---|---|
Are you trying files that are allowed in the extension types?
Web Design Database - www.wddb.com
|
dervan |
|
---|---|
now you can upload zip without subdirectories only
if you need to upload zip with subdirectories, then search in file system/mimetype.php for string
$mime_type['zip'][] = array('application/zip', '504B03041400', '1', '0', '6', '0');
$mime_type['zip'][0] = array('application/zip', '504B03041400', '1', '0', '6', '0');
$mime_type['zip'][1] = array('application/zip', '504B03040A00', '1', '0', '6', '0');
|
patriotfan |
|
---|---|
dervan |
|
---|---|
patriotfan, please show the first 6 bytes of zip file (in hex)
|
patriotfan |
|
---|---|
# dervan : patriotfan, please show the first 6 bytes of zip file (in hex)I do not understand what you want me to do, but... The fisrt 6 bytes of it are 203581 and converted to hex is ?? (i dont know about that) My Cotonti powered site - [url=http://www.gnextop.patriotfan.co.cc]GnextopCenter[/url]
|
dervan |
|
---|---|
you can view zip file in any hex editor, for example in HxD - freeware Hex Editor for Windows
install HxD (or extract portable version), drag-and-drop zip file to HxD window, and you can see in HxD window the first 6 bytes in hex, like this: 50 4B 03 04 0A 00 |
Kilandor |
|
---|---|
Or upload the file to your FTP and then link it to us, or PM it to me.
Also what program was the zip created with, I compared many files for each type from different sources, when I made the mimetype list. Then, I can test and create multiple files with it to confirm a pattern, and we can likely add it to the list then. Also this feature can be bypassed and turned off through Admin > Config > Personal File Space Though it is not recomended, as there are some possible security risks for allowing un-filtered uploads. |
|
Отредактировано: Kilandor (10.02.2009 14:47, 15 лет назад) |
dervan |
|
---|---|
Kilandor |
|
---|---|
Sorry my message was more directed to patriotfan.
But thanks for the info, i see what your referring too, I'll add that check to the core. But it appears to not have fixed it for patriotfan, so a copy of his file would still be usefull. |
Antar |
|
---|---|
same problem here. Here's the zip http://rapidshare.com/files/196427433/mass_import.zip.html
|
Kilandor |
|
---|---|
Ok, i've added this new zip format to our config here, and added it to the SVN
|
patriotfan |
|
---|---|
# Kilandor : Sorry my message was more directed to patriotfan.The file is here: http://philterprojects.com/downloads/gnextop_theme.zip @dervan: 50 4B 03 04 0A 00 and here is the screenshot of it My Cotonti powered site - [url=http://www.gnextop.patriotfan.co.cc]GnextopCenter[/url]
|
|
Отредактировано: patriotfan (12.02.2009 06:49, 15 лет назад) |
dervan |
|
---|---|
patriotfan, yes it's the same signature
your system/mimetype.php is corrected now, and i don't understand why you can't download zip please do this again: 1) extract original file system/mimetype.php from Cotonti disiributive 2) search in this file for string
$mime_type['zip'][] = array('application/zip', '504B03041400', '1', '0', '6', '0');
$mime_type['zip'][0] = array('application/zip', '504B03041400', '1', '0', '6', '0');
$mime_type['zip'][1] = array('application/zip', '504B03040A00', '1', '0', '6', '0');
4) try again to upload with PFS your problem's zip[/] |
patriotfan |
|
---|---|