This commit is contained in:
Jade (Rose) Rowland 2024-05-16 16:49:28 -04:00
parent 27d8bae671
commit 803b5e56fc
2 changed files with 11 additions and 5 deletions

View file

@ -10,6 +10,7 @@ export default function ImportSoundsButton({ onComplete }) {
return;
}
setIsUploading(true);
await uploadSamplesToDB(userSamplesDBConfig, fileUploadRef.current.files).then(() => {
registerSamplesFromDB(userSamplesDBConfig, () => {
onComplete();
@ -32,7 +33,7 @@ export default function ImportSoundsButton({ onComplete }) {
directory=""
webkitdirectory=""
multiple
accept="audio/*"
accept="audio/*, .wav, .mp3, .m4a, .flac"
onChange={() => {
onChange();
}}