Skip to content

Commit

Permalink
Document WAR configuration option for maxUploadSize
Browse files Browse the repository at this point in the history
  • Loading branch information
michikommader committed Oct 11, 2024
1 parent 87a8e3d commit b3ed97d
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
3.2


If documents are not available, editors can upload attachments to a metadata record. The document is added to the filestore. The filestore can contains any kind of files.
If documents are not available, editors can upload attachments to a metadata record. The attachment is added to the filestore. The filestore can contain any kind of files.

![](img/filestore.png)

Expand All @@ -25,4 +25,15 @@ A file uploaded in this way will be exported in the metadata export file (MEF).

## Filestore configuration

By default, the maximum file size is set to 100Mb. This limit is set in `/services/src/main/resources/config-spring-geonetwork.xml` with the parameter `maxUploadSize`.
By default, the maximum file size for attachment uploads is set to 100Mb. When building GeoNetwork from source, this limit can be changed in `/services/src/main/resources/config-spring-geonetwork.xml` with the parameter `maxUploadSize`.

For deployment on an application server, or for adjusting the limit in an already running web application, the value for `maxUploadSize` can be changed in `WEB-INF/config.xml` accordingly:

```xml
<general>
<!-- Size must be in megabyte (integer), 100MB by default -->
<maxUploadSize>5000</maxUploadSize>
<uploadDir>./data/tmp</uploadDir>
<debug>false</debug>
</general>
```

0 comments on commit b3ed97d

Please sign in to comment.