Beignet API reference
    Preparing search index...

    Interface UploadFileConstraints

    Constraints for files accepted by an upload definition.

    interface UploadFileConstraints {
        cacheControl?: string;
        checksum?: UploadChecksumRequirement;
        contentTypes?: readonly string[];
        contentTypeVerification?: false | "signature";
        maxFiles?: number;
        maxSizeBytes?: number;
        visibility?: "private" | "public";
    }
    Index
    cacheControl?: string

    Cache-Control value written to storage.

    Request checksum verification for direct uploads and expose the requirement through the upload manifest so browser clients can send expected digests.

    contentTypes?: readonly string[]

    Accepted MIME content types. Omit to accept any content type.

    contentTypeVerification?: false | "signature"

    Verify supported MIME types against file signatures instead of trusting only the client-declared content type.

    "signature"
    
    maxFiles?: number

    Maximum files accepted by one request.

    1
    
    maxSizeBytes?: number

    Maximum accepted file size in bytes.

    visibility?: "private" | "public"

    Object visibility written to storage.

    "private"