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
Return to the default flat view Create a new topic Submit Reply
Re: File Attachment [message #166224 is a reply to message #166082] Fri, 14 October 2011 20:10 Go to previous messageGo to previous message
WillT is currently offline  WillT   United States
Messages: 3
Registered: September 2011
Location: United States
Karma:
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?



[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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: Sat Nov 23 02:20:57 GMT 2024

Total time taken to generate the page: 0.05119 seconds