How to increase the maximum upload size

1,958 views
Skip to first unread message

veereshprasad sawadi

unread,
Dec 6, 2021, 9:17:07 AM12/6/21
to DSpace Community
As prescribed in Dspace7 documentation (under submission user interface/configuring the file upload step/basic settings), have tried increasing maximum upload file size by adding upload.max = -1 in dpsace.cfg but was unsuccessfull. Kindly help.

Tim Donohue

unread,
Dec 6, 2021, 10:31:18 AM12/6/21
to DSpace Community
Hi,

The "upload.max" setting is no longer valid in DSpace 7.  It was removed during the 6.x -> 7.x upgrade, as it only applied to DSpace 6.x and below.

Because DSpace 7 uses Spring Boot for the backend, you can use Spring Boot's own settings to tweak the maximum size of an uploaded file.  See

By default, DSpace 7 sets both "spring.servlet.multipart.max-file-size" and  "spring.servlet.multipart.max-request-size" to 512MB in this file: https://github.com/DSpace/DSpace/blob/main/dspace-server-webapp/src/main/resources/application.properties#L127-L134

However, you can override those defaults by specifying a *new value* in your "local.cfg" (as any settings in local.cfg will override defaults in that application.properties file).

So, you could, for example set: "spring.servlet.multipart.max-file-size = 1GB" to add a 1GB limit.  I believe you can also set these to "-1" to make the file upload unlimited (however there is always a risk that a very large upload will still fail if your request simply times out in Tomcat.)

Hopefully that helps. Let us know if there are other questions on this list.

Tim

akun gembell

unread,
Dec 7, 2021, 3:04:12 AM12/7/21
to DSpace Community
Hi everyone, I want to ask a question. I'm just using DSpace v6.3 xmlui and I'd like to make some customizations to a function. so i have some questions i hope you guys can help me.

1. Is it possible to set the uploaded PDF to not be able to do "text selection, copy/paste"?

2. Is it possible to provide a simple PDF viewer, for example with an iframe?

3. Is it possible to provide an input field for password confirmation as re-authentication when a user accesses the collection?

Should I make changes to the release version folder like "dspace-6.3-src-release" or to the "Dspace" folder that appears after the "mvn package" command?

I hope all of you help, thank you
Reply all
Reply to author
Forward
0 new messages