[pmwiki-users] UploadMaxSize - correct units?

Patrick R. Michaud pmichaud at pobox.com
Thu Jul 10 12:52:34 CDT 2008


On Thu, Jul 10, 2008 at 06:02:10PM +0200, Petko Yotov wrote:
> On Thursday 10 July 2008 16:55:28 Patrick R. Michaud wrote:
> > Certainly I would
> > never expect to be able to have gigabyte or terrabyte uploads --
> > IIRC, PHP's upload feature can't support it.
> 
> As the $UploadDirQuota is about the total sum of bytes in the uploads 
> directory (except for .hidden files), one can reasonably have a host that 
> allows several GB of disk space, even if if each file is not very big.
> 
> >
> > Better in each case would probably be to provide examples than
> > to try to quote conversion factors:
> >
> >     $UploadDirQuota = 102400;     # limit uploads to 100K
> >     $UploadDirQuota = 1048576;    # limit uploads to 1 MB
> >     $UploadDirQuota = 10485760;   # limit uploads to 10 MB
> 
> How about :
>    $UploadDirQuota = 100*1024;         # limit uploads to 100KB
>    $UploadDirQuota = 1000*1024;        # limit uploads to 1000KB
>    $UploadDirQuota = 1024*1024;        # limit uploads to 1MB
>    $UploadDirQuota = 25*1024*1024;     # limit uploads to 25MB
>    $UploadDirQuota = 2*1024*1024*1024; # limit uploads to 2GB

Works for me.

Pm



More information about the pmwiki-users mailing list