miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

minibb_storage_1.4.2 - uploading .zip file issues

 
Author Steve Shaw
Partaker
#1 | Posted: 1 Jun 2015 00:19 
Hi Paul,

I have minibb_storage_1.4.2 installed, and you have helped me previously to get image upload and thumbnails working.
I've just discovered .zip upload will not work, but I seem to have all the options set correctly.

Any thoughts?

Steve

Author Paul
Lead Developer 
#2 | Posted: 1 Jun 2015 02:26 
Could you try to upload some zip file you are having troubles with, to our storage here on forums? Will it work?

Author Steve Shaw
Partaker
#3 | Posted: 1 Jun 2015 10:39 
Yes - it works...
So it's something to do with our set-up.

Author Paul
Lead Developer 
#4 | Posted: 2 Jun 2015 14:38 
For zip files, you should set the proper file type.

For example:

$anonUsersFiles=array(
...
'application/x-zip-compressed'=>102400,
'application/zip'=>102400,
...
);
the same for $regUsersFiles.

Note that registered members and guests could have different privileges in uploading different file types of different file sizes. But the standard definitions are the same for both.

Both 'application/zip' and 'application/x-zip-compressed' should be set for zip files, because various browsers may send this or that header identifying such a type.

Author Steve Shaw
Partaker
#5 | Posted: 2 Jun 2015 17:04 
Yeah, I have both set, but still get an error - and the test file is not large:

Sorry! Your file has failed to upload. Either it is of a format not allowed to upload, is too large, such file already exists in the specified folder, or there was an internal server error. Please, try again after making corrections to the original file.

REF:#application/zip#74155#test.zip#zip#SCANFALSE


Any further ideas?

Author Paul
Lead Developer 
#6 | Posted: 2 Jun 2015 21:36 
Pay attention to $anonUsersFiles and $regUsersFiles. Everywhere zip extensions should be the same.

Author Steve Shaw
Partaker
#7 | Posted: 2 Jun 2015 21:38 
I am only using $regUsersFile - I have not enabled for $anonUsersFiles.

Steve

Author Paul
Lead Developer 
#8 | Posted: 2 Jun 2015 21:56 
Ok, could you copy-paste here what do you have for $regUsersFiles option?

Author Steve Shaw
Partaker
#9 | Posted: 2 Jun 2015 22:11 
Indeed:
$regUsersFiles=array(
'image/jpeg'=>10240000,
//'image/pjpeg'=>1024000,
'image/gif'=>512000,
'file/pdf'=>1024000,
'application/x-zip-compressed'=>10240000,
'file/zip'=>10240000,
//'video/mpeg'=>20480000,
//'video/x-ms-wmv'=>20480000,
//'video/quicktime'=>20480000,
//'video/avi'=>20480000
);

Author Paul
Lead Developer 
#10 | Posted: 2 Jun 2015 22:47 
'file/pdf', 'file/zip' are all wrong definitions.

They should be:

'application/pdf'
'application/zip'
Also, you should de-comment (remove double slash) from 'image/pjpeg' because often regular .jpg files are recognized by this type.

Author Steve Shaw
Partaker
#11 | Posted: 2 Jun 2015 23:21 
Oh - weird!
No idea how they got changed...

Thanks for info!

Specific miniBB Support Forums / Specific /
 minibb_storage_1.4.2 - uploading .zip file issues
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑