Documentation
    Preparing search index...

    Options that can be used to validate an uploaded file

    type FileValidationOptions = {
        size: string | number;
        extnames: string[];
    }
    Index

    Properties

    Properties

    size: string | number

    Maximum allowed file size (as string with unit or number in bytes)

    extnames: string[]

    Array of allowed file extensions