Posted by Shelly on 11/12/21 11:20
I have upload working and the file type test has "audio/mid". I would also
like allow other types, say .wav for example. Is it simply a case of
changing:
if ($_FILES['filename']['type'] == "audio/mid") {
to
if (($_FILES['filename']['type'] == "audio/mid") ||
($_FILES['filename']['type'] == "audio/wav") ) {
Is there a more compact way of doing it?
Also, please help me understand the meaning of "audio/mid". Why is there
the prequalifier of "audio/" and not simply have "mid"? I am sure this is
**somewhere** in the manual, but I haven't located it as yet.
Shelly
Navigation:
[Reply to this message]
|