Skip to content

Adopting Spring Boot Multipart Configuration for File Uploads #15644

@gsartori

Description

@gsartori

Feature description

Currently, file upload limits in Grails are configured as follows:

grails:
  controllers:
    upload:
      maxFileSize: 20000000
      maxRequestSize: 20000000

In Spring Boot, the equivalent configuration is:

spring:
  servlet:
    multipart:
      max-file-size: 200MB
      max-request-size: 200MB

I propose that we adopt the Spring Boot configuration properties instead.

This would provide several benefits:

  • Avoid reinventing existing functionality
  • Reduce redundant and framework-specific configuration code
  • Improve readability by allowing the use of human-friendly size units (e.g., MB instead of raw byte values)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions