11
Dave_L
Re: 2MB upload limit in Downloads Module
  • 2004/2/12 11:22

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
... and I have direct control of my php.ini which is set to 15mb


Did you check the values of both upload_max_filesize and post_max_size?

12
Beast
Re: 2MB upload limit in Downloads Module
  • 2004/2/13 11:45

  • Beast

  • Just popping in

  • Posts: 26

  • Since: 2003/9/7 2


Quote:

Dave_L wrote:
Quote:
... and I have direct control of my php.ini which is set to 15mb


Did you check the values of both upload_max_filesize and post_max_size?


upload is set to 15M

max post is 8M

So I guess it's not that :(

13
Dave_L
Re: 2MB upload limit in Downloads Module
  • 2004/2/14 0:17

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


What I would do is:

1) Insert a call to phpinfo() somewhere within Xoops, preferably in the part that processes an uploaded file, to verify that all the relevant php.ini parameters are really set correctly.

2) If (1) didn't help, I would try a standalone upload script (separate from Xoops), and see if the problem occurs there.

14
chingu
Re: 2MB upload limit in Downloads Module
  • 2004/2/16 11:17

  • chingu

  • Just popping in

  • Posts: 8

  • Since: 2004/1/11


think I found the solution, as least it worked for me;)

upload beyond 2MB


first change in php.ini
the max_upload_filesize & max_execution_time
reload the server


then

in \modules\mydownloads\submit.php
line 242-245

change

if ( $xoopsModuleConfig['useruploads'] )
{
$sform->addElement( new XoopsFormFile( _MD_DLFILE, 'userfile', 2000000 ), false );
}


to


if ( $xoopsModuleConfig['useruploads'] )
{
$sform->addElement( new XoopsFormFile( _MD_DLFILE, 'userfile', $maxfilesize ), false );
}


wrong counting in mydownloads:

in \modules\mydownloads\index.php
line 73-74

change

list($numrows)=$xoopsDB->fetchRow($xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status = 1"));
$xoopsTpl->assign('lang_thereare', sprintf(_MD_THEREARE,$numrows));

to

list($numrows)=$xoopsDB->fetchRow($xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status = 1 OR 2 "));
$xoopsTpl->assign('lang_thereare', sprintf(_MD_THEREARE,$numrows));


disable obligatory homepage-field

in \modules\mydownloads\modfile.php &
in \modules\mydownloads\index.php
line 66-71

change

// Check if HOMEPAGE exist
if ( $HTTP_POST_VARS["homepage"] == "" )
{
$eh->show( "1016" );
}

to

//Check if HOMEPAGE exist
//if ( $HTTP_POST_VARS["homepage"] == "" )
//{
// $eh->show( "1016" );
//}

Andy

Login

Who's Online

403 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 403


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits