Skip to content

Athena::Framework::Bundle::Schema::FileUploads#

Configures settings related to file uploads.

ATH.configure({
  framework: {
    file_uploads: {
      enabled: true,
    },
  },
})
See the Getting Started docs for more information.

Configuration Properties

enabled#

type:

Bool

default:

false

If false, native file upload support will be disabled and related types will not be included in the resulting binary.


temp_dir#

type:

String | ::Nil

default:

nil

The directory where temp files will be stored while requests are being processed. If nil, then a directory called athena will be used within the system's tempdir by default.

Warning

If providing a custom directory, it MUST already exist.


max_uploads#

type:

Int32

default:

25

Controls how many files may be uploaded at once.


max_file_size#

type:

Int64

default:

(1024 * 1024) * 10

The maximum allowed file size, in bytes, that are allowed to be uploaded. Defaults to 10 MiB.