FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » File Attachment (File Attachment is too big (over allowed limit of 8388608 bytes))
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
File Attachment [message #166079] Tue, 13 September 2011 20:59 Go to next message
WillT is currently offline  WillT   United States
Messages: 3
Registered: September 2011
Location: United States
Karma: 0
Junior Member
I just installed FUDforum on my GoDaddy Url and most everything seems to work except attaching a file.

When I try to upload a small file ~14 Bytes (attached to this message), it seams to upload but I get the following:
File Attachment is too big (over allowed limit of 8388608 bytes)

This is what I have checked:

1) Admin Control Panel

System Configuration
Overview of your system's configuration. Please include this when reporting bugs on the support forum:

FUDforum version: 3.0.3
PHP version: 5.3.6
PHP built on: Linux p3nlhg194.shr.prod.phx3.secureserver.net 2.6.18-238.19.1.el5PAE #1 SMP Fri Jul 15 08:15:44 EDT 2011 i686
Database type: mysql (mysql)
Database version: 5.0.91-log
Web server: Apache
Web Server load: 6.34
Web server to PHP interface: cgi-fcgi
Relevant PHP settings: Safe mode: OFF
Open basedir: none
Display errors: ON
File uploads: ON
Maximum file upload size: 8M
Magic quotes: ON

Output buffering: No
Disabled functions: none
PSpell support: Yes
Zlib support: Yes

2) Called GoDaddy and they ran a test on the url and found nothing that would stop uploading via PHP or FTP.

3) The directory structure is \forum, \forum\data and permission is set to 777 for both.

4) I'm performing the action as Administrator.
Allowed File Extensions: (unrestricted)
Maximum File Size: 8192KB
Maximum Files Per Message: 100

Any Ideas on what to look at next would be appreciated.

  • Attachment: test.txt
    (Size: 0.01KB, Downloaded 1234 times)
Re: File Attachment [message #166082 is a reply to message #166079] Wed, 14 September 2011 16:36 Go to previous messageGo to next message
WillT is currently offline  WillT   United States
Messages: 3
Registered: September 2011
Location: United States
Karma: 0
Junior Member
I uninstalled FUDforum and reinstalled it using default paths it suggested.

Still the same result, when trying to attach same file attached to this forum.

File Attachment is too big (over allowed limit of 1048576 bytes)
Allowed File Extensions: (unrestricted)
Maximum File Size: 1024KB
Maximum Files Per Message: 5

Any ideas what I can try next? where I could look?
Re: File Attachment [message #166224 is a reply to message #166082] Fri, 14 October 2011 20:10 Go to previous messageGo to next message
WillT is currently offline  WillT   United States
Messages: 3
Registered: September 2011
Location: United States
Karma: 0
Junior Member

In post.php I did this where the functions end. looks like the array has everything but the name.

Print_r ($_FILES);

Array ( [attach_control] => Array ( [name] => Array [type] => Array ( [0] => text/plain ) [tmp_name] => Array ( [0] => /tmp/phpXf144X ) [error] => Array ( [0] => 0 ) [size] => Array ( [0] => 14 ) ) )



Not sure why but if I comment out this in post.php I can attach a file even though the name is not passed:


// Old themes may still have non-array upload controls without ...name="attach_control[]" multiple="multiple".
// We do this so that even file upload fields that are not arrays, are processed as arrays... it's easier.
// if (isset($_FILES['attach_control']['name']) && !is_array($_FILES['attach_control']['name'])) {
// $_FILES['attach_control'] = array(
// 'tmp_name' => array($_FILES['attach_control']['tmp_name']),
// 'name' => array($_FILES['attach_control']['name']),
// 'size' => array($_FILES['attach_control']['size']),
// 'error' => array($_FILES['attach_control']['error']),
// 'type' => array($_FILES['attach_control']['type']),
// );
//}


Does anyone have the FUDforum attaching files using a GoDaddy.com account????

Any Ideas how to fix this?



Re: File Attachment [message #167751 is a reply to message #166224] Thu, 13 September 2012 06:29 Go to previous messageGo to next message
rikblok is currently offline  rikblok   Canada
Messages: 1
Registered: July 2012
Karma: 0
Junior Member
I had the same problem but thanks to WillT's clue I was able to solve it. It turned out to be a pair of brackets in the template.

In post_common.tmpl > upload file I had to the trailing remove "[]" from "attach_control[]" (line 2):
<input type="hidden" id="MAX_FILE_SIZE" name="MAX_FILE_SIZE" value="{VAR: max_as}" />
<input type="file" name="attach_control" multiple="multiple" />
<input type="submit" class="button" name="attach_control_add" value="{MSG: post_upload_file}" />
<input type="hidden" name="tmp_f_val" value="1" />


I hope it helps!
Aw: Re: File Attachment [message #167924 is a reply to message #167751] Tue, 13 November 2012 18:14 Go to previous messageGo to next message
pyroxid is currently offline  pyroxid   Germany
Messages: 15
Registered: August 2012
Location: Berlin, Germany
Karma: 0
Junior Member
I had the same problem, upgrading from 2.7.7 over 3.0.0 to 3.0.4, this fixed my issues, thanks a lot!
Re: Aw: Re: File Attachment [message #167973 is a reply to message #167924] Sat, 01 December 2012 08:43 Go to previous messageGo to next message
TheDude is currently offline  TheDude   France
Messages: 120
Registered: November 2012
Location: France
Karma: 2
Senior Member
Cool ! After re-building the themes ----> IT WORKS !! Thanks !!

Re: File Attachment [message #185780 is a reply to message #166079] Fri, 09 May 2014 02:00 Go to previous message
Jon   United Kingdom
Messages: 9
Registered: April 2014
Karma: 0
Junior Member
This fixed the same error for me with version 3.0.5 - thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Maillist.php works from command line but not postfix pipe
Next Topic: mailing list setup partially working...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 21:23:44 GMT 2024

Total time taken to generate the page: 0.05057 seconds