Beignet API reference
    Preparing search index...

    Interface UploadFileConstraints

    Constraints for files accepted by an upload definition.

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

    Properties

    cacheControl?: string

    Cache-Control value written to storage.

    contentTypes?: readonly string[]

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

    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"