2
  <input type="file" id="fileinput" />

I need to upload a file with .wav format.I need to check the first 4 bytes of file and compare it with magic number of wav so that I can prevent duplicate file upload. How to do this?

0 Answers0