UNPKG

picgo

Version:

A tool for image uploading

20 lines (19 loc) 1.15 kB
export declare const CLIPBOARD_IMAGE_FOLDER = "picgo-clipboard-images"; export declare const PICGO_CLOUD = "picgo-cloud"; export declare const PICGO_CLOUD_IMPORT_LOG_FILE = "picgo-cloud-import-list.log"; export declare const PICGO_CLOUD_IMPORT_PENDING_FILE = "picgo-cloud-import-list-pending.json"; export declare const PICGO_CLOUD_AUTO_IMPORT_PLUGIN = "picgoCloudAutoImport"; export declare const PICGO_CLOUD_MULTIPART_PENDING_FILE = "picgo-cloud-multipart-pending.json"; /** Bytes per megabyte. Reused by anything that formats / compares file sizes. */ export declare const BYTES_PER_MB: number; /** * Size threshold for multipart upload. Files >= this go through the multipart path; smaller * files keep the single-PUT path. Must stay aligned with picgo-hub's MULTIPART_THRESHOLD_BYTES. */ export declare const MULTIPART_THRESHOLD_BYTES: number; /** * Part size for multipart upload. R2/S3 require each part >= 5 MB (last part exempt), * max 5 GB per part, max 10000 parts per upload. 8 MB × 128 = 1024 MB covers the 1 GB * per-file ceiling with a comfortable retry granularity. */ export declare const MULTIPART_PART_SIZE_BYTES: number;