configure upload file size error

60 views
Skip to first unread message

sunit...@gmail.com

unread,
Jun 8, 2023, 3:36:54 AM6/8/23
to DSpace Technical Support
Dear all

1. While configuring following the server failed to upload large files. If following changes are made there is still an error. Is there any other configuration also to be made?

 In local.cfg, I increased upload file size by changing the local.cfg line
spring.servlet.multipart.max-file-size = 512MB
to
spring.servlet.multipart.max-file-size = 3GB
tried
spring.servlet.multipart.max-file-size = -1
But it fails to upload large files

2. How to customise "Simple Item Page".  This is to add more elements to display

Any help is greatly appreciated.

with reg

Sunita Barve

DSpace Technical Support

unread,
Jun 15, 2023, 11:56:35 AM6/15/23
to DSpace Technical Support
For the Upload file error, it's possible that your Proxy (Apache or Nginx) has its own limits set for the size of file it will accept.

For Nginx, there's mention in this thread that "client_max_body_size" needs to be set if your want to upload larger files:  https://groups.google.com/g/dspace-tech/c/uPmBHCwbUsE/m/EtDFm2RxBgAJ

For Apache, there's mention in this thread that, if you are using a "Connector" you might need to set "disableUploadTimeout" and/or "connectionUploadTimeout" to avoid larger files timing out: https://groups.google.com/g/dspace-tech/c/FuhWNSQqzx4/m/jK-jR9UIBAAJ

Essentially, once you are trying to work with files that are larger than what your Proxy will allow, then you'll also need to modify settings at the Proxy level to avoid timeouts.

If those don't help, we'd need more information on the error.  The troubleshooting guide would be of use in finding underlying error messages: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

Tim
Reply all
Reply to author
Forward
0 new messages