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

[EP-tech] Re: 1. is there any file upload limit (Stefano Cecere)

thank you Bin for your detailed feedback.. but.. we don't want to limit file uploads.. we want UNLIMITED file sizes ! :) 
(we found problems uploading >10Gb files)


On 17/lug/2012, at 16:01, Bin Han wrote:

> Hello Stefano:
> As far as I can tell (hand coded before but didn't go much further) there are two ways to limit the upload document size. One is editing the Apache conf file to set the max file size, afterwards, the user will get an apache error page once over the limit; the other option is touching the Document.pm module to set the maximum file size. Probably you can do something as follow to set the limit to 1M:
> Document.pm :: sub upload
> {
> ...
> 	my $size_limit = 1*1024*1024;
> 	if($filesize)
> 	{
> 		if($filesize > $size_limit)
> 		{
> 			return 0;
> 		}
> 	}
> ...
> }
> However it would be smart to put $size_limit in cfg.d, then you don't have to restart apache each time your change the limit. 
> Good luck!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20120718/0f9cda9c/attachment.bin