FilesElement: FormElementBinaryStorage & LookupFormElement & FormElementReadOnly & {
    allowExtensionlessAttachments?: boolean;
    defaultValue?: unknown;
    maxEntries?: number;
    maxFileSize?: number;
    minEntries?: number;
    restrictFileSize?: boolean;
    restrictFileTypes: boolean;
    restrictedFileTypes?: string[];
    type: "files";
}

Type declaration

  • OptionalallowExtensionlessAttachments?: boolean
  • OptionaldefaultValue?: unknown
  • OptionalmaxEntries?: number
  • OptionalmaxFileSize?: number

    Required if restrictFileSize is true. The maximum size (in Megabytes) that an individual file can be

  • OptionalminEntries?: number
  • OptionalrestrictFileSize?: boolean

    If true, will prevent the user from uploading files that exceed the value set in maxFileSize.

  • restrictFileTypes: boolean

    If true, will restrict the types of files a user can upload based on the file extensions set in restrictFileTypes.

  • OptionalrestrictedFileTypes?: string[]

    Required if restrictFileTypes is true. File types must be file extensions without the dot at the beginning. For example:

    • "png" is valid
    • ".png" is not valid
  • type: "files"