cph-cachet / carp-webservices-spring

REST-based implementation of the CARP Core Domain Model using Spring Boot in Kotlin
https://carp.dk
MIT License
3 stars 2 forks source link

Change maximum limitation for file/request size #166

Closed bardram closed 2 weeks ago

bardram commented 3 weeks ago

Trying to upload an image on 13 MB I get an HTTP error 413

{
 "type": "about:blank",
 "title": "Payload Too Large",
 "status": 413,
 "detail": "Maximum upload size exceeded",
 "instance": "/api/studies/b7a4d433-c267-4d2c-b182-67bbbc37279b/files",
 "properties": null
}

We should be able to upload files & images.

yuanchen233 commented 3 weeks ago

This is defined in application.yml under spring.servlet.multipart.maxfile-size and max-request-size.

change this on environment specific yml files and re-deploy once we agrees to a new maximum. ps: consider videos also

bardram commented 2 weeks ago

Set it to 30 MB for now.