Skip to content

Commit c90dd49

Browse files
committed
Merge pull request 'Fix #22290: disable multi-part to support file-upload' (#9) from feature/22290 into develop
2 parents 7a8e916 + d4e7d70 commit c90dd49

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/ContainerProxyApplication.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ private static void setDefaultProperties(SpringApplication app ) {
136136

137137
// use in-memory session storage by default. Can be overwritten in application.yml
138138
properties.put("spring.session.store-type", "none");
139+
140+
// disable multi-part handling by Spring. We don't need this anywhere in the application.
141+
// When enabled this will cause problems when proxying file-uploads to the shiny apps.
142+
properties.put("spring.servlet.multipart.enabled", "false");
139143
app.setDefaultProperties(properties);
140144
}
141145

0 commit comments

Comments
 (0)