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} />