[pmwiki-users] UploadMaxSize - correct units?
5ko at 5ko.fr
Thu Jul 10 11:02:10 CDT 2008
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
More information about the pmwiki-users