- Add upload-modal/ with useUploadModal, constants, and presentational components: Dropzone, FileDisplay, Progress, ErrorAlert, MetadataForm - Re-export from UploadModal.tsx for backward compatibility Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
424 B
TypeScript
19 lines
424 B
TypeScript
export const MAX_FILE_SIZE = 100 * 1024 * 1024; // 100 MB
|
|
export const ACCEPTED_AUDIO_TYPES = {
|
|
'audio/mpeg': ['.mp3'],
|
|
'audio/wav': ['.wav'],
|
|
'audio/ogg': ['.ogg'],
|
|
'audio/flac': ['.flac'],
|
|
'audio/mp4': ['.m4a'],
|
|
'audio/aac': ['.aac'],
|
|
} as const;
|
|
|
|
export type UploadFormData = {
|
|
file: File | null;
|
|
title: string;
|
|
artist: string;
|
|
album: string;
|
|
genre: string;
|
|
};
|
|
|
|
export const MAX_RETRY_ATTEMPTS = 3;
|