@oneblink/sdk-core
    Preparing search index...

    Type Alias FilesElement

    FilesElement: FormElementBinaryStorage & LookupFormElement & FormElementReadOnly & {
        allowExtensionlessAttachments?: boolean;
        defaultValue?: unknown;
        maxEntries?: number;
        maxFileSize?: number;
        minEntries?: number;
        restrictedFileTypes?: string[];
        restrictFileSize?: boolean;
        restrictFileTypes: boolean;
        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
    • 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
    • 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.

    • type: "files"