Interface MultiPartConfig


public interface MultiPartConfig
A config for the settings related to HTTP multipart request handling.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<List<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String>>
    A comma-separated list of ContentType to indicate whether a given multipart field should be handled as a file part.
    io.quarkus.runtime.configuration.MemorySize
    The size up to which a file part is kept in memory instead of being written to the uploads directory.
  • Method Details

    • fileContentTypes

      Optional<List<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String>> fileContentTypes()
      A comma-separated list of ContentType to indicate whether a given multipart field should be handled as a file part.

      You can use this setting to force HTTP-based extensions to parse a message part as a file based on its content type.

      For now, this setting only works when using RESTEasy Reactive.

    • fileSizeThreshold

      @WithDefault("0") io.quarkus.runtime.configuration.MemorySize fileSizeThreshold()
      The size up to which a file part is kept in memory instead of being written to the uploads directory.

      With the default of 0, every file part is written to the uploads directory. Parts kept in memory are reported as such by FileItem#isInMemory() and are only written to a file if their path is requested.

      For now, this setting only works when using Quarkus REST.