miniBB Support Forums | 16 years on The Web
miniBB ® 

miniBB

®
  
 | Begin | Register | Reply | Search | Statistics | File Bank | Manual |
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions /   
 

File Bank

 
 
Page  Page 4 of 4:  « Previous  1  2  3  4

Author Steve Shaw
Partaker
#46 | Posted: 13 Nov 2018 00:30 
Hi Paul - there is no 'REF' line.
No other text at all...

Steve

Author Paul
Lead Developer
#47 | Posted: 13 Nov 2018 00:45 
It seems this error message (without REF) is displayed only in one case - when no file has been uploaded at all, i.e. this code is FALSE:

if(isset($_FILES['userfile']['name']) and is_uploaded_file($_FILES['userfile']['tmp_name']))

For me it's hard to say why it happens with no additional information; but definitely you need to debug the script before this line to see what actually happens with your file, and specially, with $_FILES['userfile'] array.

Author Steve Shaw
Partaker
#48 | Posted: 13 Nov 2018 01:28 
Unfortunately, that's way beyond my pay-grade...
Pictures upload ok - and pdfs used to upload too.
I've changed nothing, so I expect a change in our hosting server?
But, I have no idea what...

Steve

Author Paul
Lead Developer
#49 | Posted: 13 Nov 2018 18:23 
Steve Shaw:
I've changed nothing, so I expect a change in our hosting server?

I couldn't be sure on it without knowing debugging results.

Author Paul
Lead Developer
#50 | Posted: 15 Nov 2018 20:14 | Edited by: Paul 
Update to the issue described above: I've investigated it on the paid support basis, and discovered that PDF files is not truly the issue here. Uploading a small size PDF went fine, so it was only about PDF file which was about 3.2 Mbytes in size. I've went to PHP info which could be easily produced as:

<?php
phpinfo();
?>

and there it's easy to find 2 major settings which define file uploads:

upload_max_filesize - which has been set just to 2 Mbytes;
post_max_size - which has been to 8 Mbytes.

So, before setting up the max.sizes in the File Bank add-on, at first you should always refer to those settings. These settings are server-wide, and they couldn't be changed from a PHP script. That means, if in the PHP script you set the max.uploaded size to 5 Mb, but upload_max_filesize is equal to 2 Mb, and you upload the file which is 3,2 Mb, the file won't be uploaded; and that is, you'll get no infos on it (that's why no REF message is provided in the File Bank).

Only increasing upload_max_filesize in php.ini on the server makes the bigger files truly allowed for upload. And then, you could rely on this setting to adjust options for max.sizes in the File Bank add-on (as well, in the File Attachments add-on, too).

Also, keep in mind that post_max_size, which defines the total size of the post data sent, incl. texts, descriptions, titles, hidden vars and so on, should always be relatively bigger than upload_max_filesize.

Page  Page 4 of 4:  « Previous  1  2  3  4 
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions /
 File Bank
 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 our forum posting rules. If not, it may be locked or deleted 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
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
 ⇑