[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cpx] Upload Threshold



Thanks, Rus. I changed it to 20MB, like this:

  $self->{req}         = Apache2::Request->new($_[1],
                                              POST_MAX => 1024 * 1024 * 20 +
1024 * 4,  # 20 MB plus slop

Is that what you were saying to do for a VPS3?

I think that 20MB is better, but is there some way for this to be set in the
Control Panel so that the admin user can have more control over it?

Best wishes,
Rae


> -----Original Message-----
> From: owner-cpx@xxxxxxxxxxxxx [mailto:owner-cpx@xxxxxxxxxxxxx] On Behalf
Of
> Rus Berrett
> Sent: Tuesday, December 15, 2009 9:29 AM
> To: cpx@xxxxxxxxxxxxx
> Subject: Re: [cpx] Upload Threshold
> 
> On Tue, Dec 15, 2009 at 08:37:14AM -0800, Rae wrote:
> >
> > Subject: [cpx] Upload Threshold
> >
> > Does anyone know if there any way to increase the upload threshold in
> CPX?
> > It looks like the maximum file size that can be uploaded is 10MB. I have
> a
> > client trying to upload a 12MB file and it is failing.
> >
> > Best wishes,
> >
> > Rae
> 
> For future reference, what would you (or anyone else that has an opinion
> on the matter) like to see the max upload size set as?  I think that we
> set 10MB rather arbitrarily, but put it in the neighborhood of PHP5,
> which has (by default) an upload_max_filesize set to 8MB.
> 
> We are totally open to increasing the limit if that is the consensus.
> But to what value?
> 
> 
> To immediately change the limit, perform the following steps.
> 
> -------------------
> 
> For a VPSv2.  Open up this file:
> 
>   /usr/local/cp/lib/ControlPanel.pm
> 
> Find this block of code:
> 
>      55   $self->{req}         = Apache::Request->new($_[1],
>      56                                               POST_MAX => 1024 *
> 1024 * 10 + 1024 * 4,  # 10 MB plus slop
>      57                                               HOOK_DATA =>
> "$sessionid,$epoch",
>      58                                               UPLOAD_HOOK =>
> $upload_hook,
>      59                                               TEMP_DIR => "/tmp");
> 
> on line 55, change the '10' in "1024 * 1024 * 10" to whatever you
> want... 12, 15, 20, etc.  Save and then restart apache.
> 
> -------------------
> 
> For a VPSv3 or LinuxVPS, open up this file:
> 
>   /usr/local/cp/lib/ControlPanel2.pm
> 
> Find this block of code:
> 
>      43   $self->{req}         = Apache2::Request->new($_[1],
>      44                                               POST_MAX => 1024 *
> 1024 * 10 + 1024 * 4,  # 10 MB plus slop
>      45                                               TEMP_DIR => "/tmp");
> 
> on line 43, change the '10' in "1024 * 1024 * 10" to whatever you
> want... 12, 15, 20, etc.  Save and then restart apache.
> 
> -------------------
> 
> HTH.
> 
> cheers.
> 
> --rus.
> 
> 
> ========================================================================
> Rus Berrett                                                    NTT/Verio
>                  See Perl. See Perl Run. Run Perl, Run!
> 
> ======================================================================
> This is <cpx@xxxxxxxxxxxxx>      <http://www.groupmail.org/lists/cpx/>
> Before posting a question, please search the archives (see above URL).


======================================================================
This is <cpx@xxxxxxxxxxxxx>      <http://www.groupmail.org/lists/cpx/>
Before posting a question, please search the archives (see above URL).


Home | Main Index | Thread Index
Match: Format: Sort by:
Search: