You can add the below to your dspace/config/local.cfg
# EXAMPLE OVERRIDE:
# By uncommenting the below Spring Boot settings, you can increase or
decrease the maximum upload size.
# These defaults are specified in
[dspace-src]/dspace-server-webapp/src/main/resources/application.properties
# but may be overridden in this local.cfg
#
# Maximum size of a single uploaded file (default = 1MB)
spring.servlet.multipart.max-file-size = 512MB
# Maximum size of a multipart request (i.e. max total size of all files in
one request) (default = 10MB)
spring.servlet.multipart.max-request-size = 512MB
You might also need to modify your web server configuration (ssl.conf)
Apache 2.4.6 example:
<Location /uplopad_location>
#LimitRequestBody bytes
LimitRequestBody 524295
</Location>
Nginx example:
location /uploads {
client_max_body_size 512M;
}
I did not know about the upload.max (Julio) in the dspace.cfg. See
dspace-api/src/main/java/org/dspace/submit/model/UploadConfiguration.java
BW
On Wednesday, June 12, 2024 at 8:02:47 AM UTC-5 Julio wrote:
> Hello, to change the maximum size of the files that can be uploaded to
> Dspace, you must edit the dspace.cfg file and modify the parameter:
> upload.max, this value must be in bytes, if you set -1, there will be no
> limit.
>
> I hope it is useful to you.
>
> Greetings
>
> El miércoles, 12 de junio de 2024 a las 12:04:14 UTC+2, Javi Rojo Díaz
> escribió:
>
>> Good morning.
>>
>> We are having problems uploading files to items in DSpace 7.6, and it
>> seems that it's due to the upload file size limit. Based on the tests I've
>> been doing, it gives an error when the file is over 500MB.
>>
>> Is it correct that the file size limit is 500MB? If so, can this limit be
>> increased and where would it be configured?
>>
>>
>> Thank you very much, everyone!
>>
>
--
All messages to this mailing list should adhere to the Code of Conduct:
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dspace-tech/46de46eb-8096-431d-8a01-433aae9ab6f4n%40googlegroups.com.