fix #22 (backend,frontend): the backend and frontend had whitelists that only included audio formats
This commit was merged in pull request #36.
This commit is contained in:
@@ -7,7 +7,7 @@ import { useOptionsStore } from '../stores/optionsStore' // NEW
|
||||
import { uploadFile, getTaskInfo, getRecommendedFormat } from '../api/client' // NEW
|
||||
import { useTaskStore } from '../stores/taskStore'
|
||||
|
||||
const ALLOWED_EXTENSIONS = ['.mp3', '.flac', '.wav', '.m4a', '.ogg', '.opus', '.aac', '.wma', '.aiff', '.alac', '.ac3']
|
||||
const ALLOWED_EXTENSIONS = ['.mp3', '.flac', '.wav', '.m4a', '.ogg', '.opus', '.aac', '.wma', '.aiff', '.alac', '.ac3', '.mp4', '.mkv', '.webm']
|
||||
|
||||
export const UploadZone: React.FC = () => {
|
||||
const {
|
||||
@@ -96,7 +96,7 @@ export const UploadZone: React.FC = () => {
|
||||
const { getRootProps, getInputProps, isDragActive } = useDropzone({
|
||||
onDrop,
|
||||
accept: {
|
||||
'audio/*': ALLOWED_EXTENSIONS,
|
||||
'media/*': ALLOWED_EXTENSIONS
|
||||
},
|
||||
multiple: false,
|
||||
disabled: isUploading,
|
||||
|
||||
Reference in New Issue
Block a user