735

php - determinarea fishierelor audio, video, imagini

salutam asha o intrebare, am nevoie sa pun nishte restrictzii la upload la nishte fishiere, aceste fishiere pot fi de 3 tipuri: audio, video, imagini...vreau sa intreb pe cei care shtiu.... daca e de ajuns sa verific$_FILES['fname']['type'] laaudio/basic auaudio/basic sndaudio/mid midaudio/mid rmiaudio/mpeg mp3audio/x-aiff aifaudio/x-aiff aifcaudio/x-aiff aiffaudio/x-mpegurl m3uaudio/x-pn-realaudio raaudio/x-pn-realaudio ramaudio/x-wav wavimage/bmp bmpimage/cis-cod codimage/gif gifimage/ief iefimage/jpeg jpeimage/jpeg jpegimage/jpeg jpgimage/pipeg jfifimage/tiff tifimage/tiff tiffimage/x-cmu-raster rasimage/x-cmx cmximage/x-icon icoimage/x-portable-anymap pnmimage/x-portable-bitmap pbmimage/x-portable-graymap pgmimage/x-portable-pixmap ppmimage/x-rgb rgbimage/x-xbitmap xbmimage/x-xpixmap xpmimage/x-xwindowdump videovideo/mpeg mp2video/mpeg mpavideo/mpeg mpevideo/mpeg mpegvideo/mpeg mpgvideo/mpeg mpv2video/quicktime movvideo/quicktime qtvideo/x-la-asf lsfvideo/x-la-asf lsxvideo/x-ms-asf asfvideo/x-ms-asf asrvideo/x-ms-asf asxvideo/x-msvideo avivideo/x-sgi-movie?10x anticipathttp://www.w3schools.com/media/media_mimeref.asp
0