'Audio file object type is empty in android
I'm trying to upload an audio file from android in a nextjs project. I want to call few functions based on the file type. But when the file is selected, the selected file object give empty string in file type. How do I find the file type?
<input type="file" accept={'audio/mp3, audio/wav, audio/mpeg'} onChange={onFileSelect} />
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

