FileUploadUrlOptions: { contentType?: string | null; ttl?: ITimeSpan }

Configuration options for generating signed upload URLs.

IMPORT_PATH: "@daiso-tech/core/file-storage/contracts"

Type declaration

  • OptionalcontentType?: string | null

    MIME type restriction for uploads using this URL. Only files matching this content type will be accepted for upload. If not specified, any content type is allowed.

    null (no content type restriction)
    
  • Optionalttl?: ITimeSpan

    Time-to-live (TTL) duration for the signed URL. The URL will only be valid for this duration before requiring re-signing.

    TimeSpan.fromMinutes(10)