EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #00859


< 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)


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!

Bin Han
Digital Repository Developer
Concordia University Libraries
bin.han@concordia.ca

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of eprints-tech-request@ecs.soton.ac.uk
Sent: July-16-12 7:00 AM
To: eprints-tech@ecs.soton.ac.uk
Subject: Eprints-tech Digest, Vol 46, Issue 12

Send Eprints-tech mailing list submissions to
	eprints-tech@ecs.soton.ac.uk

To subscribe or unsubscribe via the World Wide Web, visit
	http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
or, via email, send a message with subject or body 'help' to
	eprints-tech-request@ecs.soton.ac.uk

You can reach the person managing the list at
	eprints-tech-owner@ecs.soton.ac.uk

When replying, please edit your Subject line so it is more specific than "Re: Contents of Eprints-tech digest..."


Today's Topics:

   1.  is there any file upload limit (Stefano Cecere)


----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Jul 2012 08:21:42 +0200
From: Stefano Cecere <stefano.cecere@krur.com>
Subject: [EP-tech]  is there any file upload limit
To: eprints-tech@ecs.soton.ac.uk
Message-ID: <9AE6B0B6-EB86-4787-B6CE-094316A3F0C9@krur.com>
Content-Type: text/plain; charset="us-ascii"

hi
a user has problem uploading a 20Gb file (yes i know it's quite big :)

i read in some old thread that ePrints should not have any limits it's just Apache/Perl that have (maybe a 2Gb limit)

anyway we could upload a 2.5Gb file without any problems

does anybody has any hint where to search about allowing such huge files upload?

we are on Ubuntu 64bit

thank you!

stefano


____    ___   __  _ _______________________

Stefano Cecere
Multimedia Archive developer
Centro Studi Umanisti KRUR - Firenze
stefano.cecere@krur.com



-------------- 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/20120716/5767c6c5/attachment-0001.bin 

------------------------------

_______________________________________________
Eprints-tech mailing list
Eprints-tech@ecs.soton.ac.uk
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech


End of Eprints-tech Digest, Vol 46, Issue 12
********************************************