Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
5 - 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: 2MB upload limit in Downloads Module
by chingu on 2004/2/16 11:17:02

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
Re: 2MB upload limit in Downloads Module
by Dave_L on 2004/2/14 0:17:25

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.
Re: 2MB upload limit in Downloads Module
by Beast on 2004/2/13 11:45:56

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 :(
Re: 2MB upload limit in Downloads Module
by Dave_L on 2004/2/12 11:22:34

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?
Re: 2MB upload limit in Downloads Module
by jayjay on 2004/2/12 10:26:05

Hi there!

It's not a secret, Beast is talking about mydownloads rc1:
https://xoops.org/modules/news/article.php?storyid=1037

With the proper bugfixes it works fine. rc2 will be released... soon

Bye!

Who's Online

231 user(s) are online (172 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits