Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Because the REST API is a Spring Boot web application, you can also configure or override any Spring Boot settings in your local.cfg.  DSpace's default Spring Boot configuration can be found in [src]/dspace-server-webapp/src/main/resources/application.properties.  A few common settings from Spring Boot which you may wish to tweak override in your local.cfg include:

Property:spring.servlet.multipart.max-file-size
Example Value:spring.servlet.multipart.max-file-size = 512MB
Informational Note:Per Spring Boot docs, this setting specifies the maximum size of file that can be uploaded via Spring Boot (and therefore via the DSpace REST API).  A value of "-1" removes any limit.  DSpace sets this to 512MB by default.
Property:spring.servlet.multipart.max-request-size
Example Value: spring.servlet.multipart.max-request-size = 512MB
Informational Note:Per Spring Boot docs, this setting specifies the maximum size of a single request via Spring Boot (and therefore via the DSpace REST API).  That means if multiple files are uploaded at once, this is the maximum total size of all files. A value of "-1" removes any limit.  DSpace sets this to 512MB by default.

...