Hello
I am using your Ajax uploader product to upload audio and image files via a web browser interface. I have several quick questions I hope you can clarify:
1. Do you have sample code to permit only the upload of several (ie, more than only one) file types? There are two scenarios:
(a) audio, where only wav, mp3 (and possibly aac) file types are permitted; and
(b) images, where only jpg, gif and png are permitted.
2. In the case of the audio file upload an additional ‘test’ is needed to compare the ‘duration’ of the audio to see if it is the correct ‘duration’ within a small tolerance. Therefore the question is – does your upload object have any ability to determine the ‘duration’ of common or specified audio file types and/or read the audio file header for ‘duration’?
I am hoping you do, but if not then I am thinking a crude workaround would be to test for file type, then apply a test to fit within deduced file length allowing for it to be either mono or stereo, and with an assumed bit depth and sample rate. Crude, but better than nothing.
Any ideas or suggestions would be very welcome.
Thanks,