You are here: Upload file types « PHP Programming Language « IT news, forums, messages
Upload file types

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация