EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #00860
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: 1. is there any file upload limit (Stefano Cecere)
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: 1. is there any file upload limit (Stefano Cecere)
- From: Stefano Cecere <stefano.cecere@krur.com>
- Date: Wed, 18 Jul 2012 09:10:24 +0200
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) ciao! stefano 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! >
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
- References:
- [EP-tech] Re: 1. is there any file upload limit (Stefano Cecere)
- From: Bin Han <Bin.Han@concordia.ca>
- [EP-tech] Re: 1. is there any file upload limit (Stefano Cecere)
- Prev by Date: [EP-tech] Re: 1. is there any file upload limit (Stefano Cecere)
- Next by Date: [EP-tech] Problem adding fields to EPrints via GUI
- Previous by thread: [EP-tech] Re: 1. is there any file upload limit (Stefano Cecere)
- Next by thread: [EP-tech] Problem adding fields to EPrints via GUI
- Index(es):