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

[EP-tech] cannot upload file above 1GB



CAUTION: This e-mail originated outside the University of Southampton.
This has come up a few times over the years.
Could be a config option e.g. $c->{apache}->{LimitRequestBody} = 2147483648;

This could then be used in both the Apache config and perl modules/javascript.

Cheers,
John

________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Yuri via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
Sent: 20 January 2023 08:44
To: David R Newman <drn at ecs.soton.ac.uk>; eprints-tech at ecs.soton.ac.uk <eprints-tech at ecs.soton.ac.uk>
Subject: Re: [EP-tech] cannot upload file above 1GB

CAUTION: This e-mail originated outside the University of Southampton.

Yes, it was it! Thanks a lot!

When you hit the limit, the javascript does not complain. Is there a way to intercept the Apache event denying the upload? Or it is better to have the javascript to check itself for the limit?

Il 19/01/23 17:58, David R Newman ha scritto:

Hi Yuri,

I suspect this may be an Apache restriction on LimitRequestBody [1].  The default value for this is 1073741824 bytes which is 1 GiB.  I think you can put this in any Apache configuration file but as you want to make sure this is maintained if you migrate your repository, I would recommend adding it to your archive's securevhost.conf, as I would assume you have HTTPS enabled and therefore file uploads would only happen over HTTPS.  A setting something like:

LimitRequestBody 2147483648

Would up the max upload limit to 2GB, once you reload your webserver.

Regards

David Newman

[1] https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhttpd.apache.org%2Fdocs%2F2.4%2Fmod%2Fcore.html%23limitrequestbody&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2dac0f39e71f47ec64df08dafacb23a3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638098047625190019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5WeA%2BVzbkUzFhg6fWEhxsC4Vmbc08OUKYyQ42z2T9Tc%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhttpd.apache.org%2Fdocs%2F2.4%2Fmod%2Fcore.html%23limitrequestbody&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2dac0f39e71f47ec64df08dafacb23a3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638098047625190019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5WeA%2BVzbkUzFhg6fWEhxsC4Vmbc08OUKYyQ42z2T9Tc%3D&reserved=0>

On 19/01/2023 16:33, Yuri via Eprints-tech wrote:

CAUTION: This e-mail originated outside the University of Southampton.

Hi!

  I've just discovered that I can upload until 1GB without any problem
(progress bar working correctly). If I upload above 1GB, the upload bar
stay at 0% and never move, and no upload is done. In the browser, I can
see it calls /cgi/users/ajax/upload_progress?progressid=<a string> about
every 1 or 2 seconds, and the transferred bytes are zero. Below 1GB, I
can see the number of transferred bytes progressing.

  How can I check what is the problem? It is Eprints 3.3.15


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2dac0f39e71f47ec64df08dafacb23a3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638098047625190019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fDNLs2nCs1%2FI8kUN%2BQkNJHolZmmeMnA1Y6CdM%2F7hlSY%3D&reserved=0>
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2dac0f39e71f47ec64df08dafacb23a3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638098047625190019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=R5zbhOsUlV6zb1JdhSKn4lc%2F1UZkJnEXJEvO10GHMl0%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2dac0f39e71f47ec64df08dafacb23a3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638098047625190019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=R5zbhOsUlV6zb1JdhSKn4lc%2F1UZkJnEXJEvO10GHMl0%3D&reserved=0>
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2dac0f39e71f47ec64df08dafacb23a3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638098047625190019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1LikzIPD14LYCaqJymj3jNdi4S2lIGipm7DXH59Dpng%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2dac0f39e71f47ec64df08dafacb23a3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638098047625190019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1LikzIPD14LYCaqJymj3jNdi4S2lIGipm7DXH59Dpng%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230120/1d1f8d1c/attachment-0001.html