UNPKG

upload-js

Version:

File Upload Library — Upload.js gives developers AJAX multipart file uploading via XHR 🚀 Comes with Cloud Storage 🌐

21 lines (20 loc) 562 B
export interface UploadConfig { apiKey: "free" | string; debug?: boolean; internal?: UploadInternalConfig; } /** * Undocumented (and unsupported) config for internal use only. */ export declare type UploadInternalConfig = ({ authenticateWithApiKey?: true; } | { accountId: string; authenticateWithApiKey: false; headers: () => Promise<Record<string, string>>; }) & UploadInternalConfigBase; export interface UploadInternalConfigBase { apiUrl?: string; cdnUrl?: string; headers?: () => Promise<Record<string, string>>; }