@spark-web/dropzone
Version:
--- title: Drop Zone isExperimentalPackage: true ---
29 lines (28 loc) • 1.18 kB
TypeScript
export declare const mimeTypeToFileExtension: {
readonly 'audio/*': "audio files";
readonly 'audio/mpeg': ".mpeg";
readonly 'audio/wav': ".wav";
readonly 'image/*': "image files";
readonly 'image/gif': ".gif";
readonly 'image/heic': ".heic";
readonly 'image/jpeg': ".jpg, .jpeg";
readonly 'image/png': ".png";
readonly 'image/svg+xml': ".svg+xml";
readonly 'image/tiff': ".tiff";
readonly 'image/webp': ".webp";
readonly 'text/*': "text files";
readonly 'text/csv': ".csv";
readonly 'text/plain': ".plain";
readonly 'text/rtf': ".rtf";
readonly 'video/*': "video files";
readonly 'video/mp4': ".mp4";
readonly 'video/mpeg': ".mpeg";
readonly 'application/msword': ".msword";
readonly 'application/pdf': ".pdf";
readonly 'application/rtf': ".rtf";
readonly 'application/vnd.ms-excel': ".xls";
readonly 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': ".xlsx";
readonly 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': ".docx";
readonly 'application/zip': ".zip";
};
export declare type AcceptedType = keyof typeof mimeTypeToFileExtension;