4images Forum & Community
4images Help / Hilfe => FAQ, Tips => Topic started by: V@no on April 07, 2005, 05:12:14 AM
-
[UPDATE]
We have a plugin that can help: [Plugin] Valid file extensions manager (http://www.4homepages.de/forum/index.php?topic=23909.0)
[/UPDATE]
[NOTICE]
If you are using 4images v1.7.8 make sure you applied this patch first: [1.7.8] Can't upload images with capital letters in extension(.JPG, .Png, etc) (http://www.4homepages.de/forum/index.php?topic=27852.0)
[/NOTICE]
1) add your new file extensions in the settings Valid file extensions
2) try upload a file with your new extension.
If no error message showed and file uploaded - you are all done :D
If it gives you an error message, write down the mime type from the error message.
For example possible error message when uploading .mp3 file:Error uploading image file: example.mp3
example.mp3: Invalid file type (mp3, audio/mpg)
In red (audio/mpg) is the mime type of the file.
So, now you have the mime type. Open includes/upload_definitions.php search for $mime_type_match['ext'] where ext is your new extension (in our example the line would look like this):$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3");
If you've found a line with your extension, then add the mime type from the error message, after a comma (dont forget use quotas)
in our example the end result would look like this:$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg");
If no line with your extension is present, then insert a new line at the end, above closing ?> with your extension and mime type:$mime_type_match['mp3'] = array("audio/mpg");
3) Open templates/<your templates>/media/ folder. Make sure you have a template with name of your new extension. (in our example there should be mp3.html template)
If there is none, then create one. I can not tell you what should be inside that template, because every extension must be handled differently, but you can look in other templates and see how they done it.
Upload definition mime_type list :
$mime_type_match['123'] = array("application/vnd.lotus-1-2-3", "application/lotus");
$mime_type_match['3dmf'] = array("x-world/x-3dmf");
$mime_type_match['3dml'] = array("text/vnd.in3d.3dml", "model/vnd.flatland.3dml", "text/vnd.in3d.3dml");
$mime_type_match['3gp'] = array("video/3gpp", "audio/3gpp");
$mime_type_match['a'] = array("application/octet-stream");
$mime_type_match['aab'] = array("application/x-authorware-bin");
$mime_type_match['aam'] = array("application/x-authorware-map");
$mime_type_match['aas'] = array("application/x-authorware-seg");
$mime_type_match['abc'] = array("text/vnd.abc");
$mime_type_match['acc'] = array("chemical/x-synopsys-accord");
$mime_type_match['acgi'] = array("text/html");
$mime_type_match['acu'] = array("application/vnd.acucobol");
$mime_type_match['aep'] = array("application/vnd.audiograph");
$mime_type_match['afl'] = array("video/animaflex");
$mime_type_match['afp'] = array("application/vnd.ibm.modcap");
$mime_type_match['ai'] = array("application/postscript");
$mime_type_match['aif'] = array("audio/aiff", "audio/x-aiff");
$mime_type_match['aifc'] = array("audio/x-aiff", "audio/aiff");
$mime_type_match['aiff'] = array("audio/x-aiff", "audio/aiff");
$mime_type_match['aim'] = array("application/x-aim");
$mime_type_match['aip'] = array("text/x-audiosoft-intra");
$mime_type_match['ani'] = array("application/x-navi-animation");
$mime_type_match['ano'] = array("application/x-annotator");
$mime_type_match['aos'] = array("application/x-nokia-9000-communicator-add-on-software");
$mime_type_match['apm'] = array("application/studiom");
$mime_type_match['apr'] = array("application/vnd.lotus-approach");
$mime_type_match['aps'] = array("application/mime");
$mime_type_match['arc'] = array("application/octet-stream");
$mime_type_match['arj'] = array("application/arj", "application/octet-stream");
$mime_type_match['art'] = array("image/x-jg");
$mime_type_match['asc'] = array("text/plain");
$mime_type_match['asd'] = array("application/astound");
$mime_type_match['asf'] = array("application/vnd.ms-asf", "video/x-ms-asf");
$mime_type_match['asm'] = array("text/x-asm");
$mime_type_match['asn'] = array("application/astound");
$mime_type_match['aso'] = array("application/vnd.accpac.simply.aso");
$mime_type_match['asp'] = array("application/x-asap", "text/asp");
$mime_type_match['asx'] = array("application/x-mplayer2", "video/x-ms-asf", "video/x-ms-asf-plugin");
$mime_type_match['au'] = array("audio/basic", "audio/x-au");
$mime_type_match['avb'] = array("application/octet-stream");
$mime_type_match['avi'] = array("video/quicktime", "application/x-troff-msvideo", "video/avi", "video/msvideo", "video/x-msvideo");
$mime_type_match['avs'] = array("video/avs-video");
$mime_type_match['avx'] = array("video/x-rad-screenplay");
$mime_type_match['bcpio'] = array("application/x-bcpio");
$mime_type_match['bh2'] = array("application/vnd.fujitsu.oasysprs");
$mime_type_match['bin'] = array("application/mac-binary", "application/macbinary", "application/octet-stream", "application/x-binary", "application/x-macbinary");
$mime_type_match['bld'] = array("application/bld");
$mime_type_match['bld2'] = array("application/bld2");
$mime_type_match['bm'] = array("image/bmp");
$mime_type_match['bmi'] = array("application/vnd.bmi");
$mime_type_match['bmp'] = array("image/bitmap", "image/bmp", "image/x-bmp", "image/x-windows-bmp");
$mime_type_match['boo'] = array("application/book");
$mime_type_match['book'] = array("application/book");
$mime_type_match['box'] = array("application/vnd.previewsystems.box");
$mime_type_match['boz'] = array("application/x-bzip2");
$mime_type_match['bpk'] = array("application/octet-stream");
$mime_type_match['bsh'] = array("application/x-bsh");
$mime_type_match['btf'] = array("image/prs.btif");
$mime_type_match['btif'] = array("image/prs.btif");
$mime_type_match['bz'] = array("application/x-bzip");
$mime_type_match['bz2'] = array("application/x-bzip2");
$mime_type_match['c'] = array("text/x-c", "text/plain");
$mime_type_match['c++'] = array("text/plain");
$mime_type_match['cal'] = array("image/x-cals");
$mime_type_match['cat'] = array("application/vnd.ms-pki.seccat");
$mime_type_match['cc'] = array("text/plain", "text/x-c");
$mime_type_match['ccad'] = array("application/clariscad");
$mime_type_match['ccn'] = array("application/x-cnc");
$mime_type_match['cco'] = array("application/x-cocoa");
$mime_type_match['cdf'] = array("application/cdf", "application/x-netcdf", "application/x-cdf");
$mime_type_match['cdkey'] = array("application/vnd.mediastation.cdkey");
$mime_type_match['cdx'] = array("chemical/x-cdx", "chemical/x-chem3d");
$mime_type_match['cer'] = array("application/pkix-cert", "application/x-x509-ca-cert");
$mime_type_match['cgi'] = array("magnus-internal/cgi");
$mime_type_match['cgm'] = array("image/cgm");
$mime_type_match['cha'] = array("application/x-chat");
$mime_type_match['chat'] = array("application/x-chat");
$mime_type_match['chm'] = array("chemical/x-chemdraw", "chemical/x-cs-chemdraw");
$mime_type_match['cif'] = array("chemical/x-cif");
$mime_type_match['cii'] = array("application/vnd.anser-web-certificate-issue-initiation");
$mime_type_match['cla'] = array("application/vnd.claymore");
$mime_type_match['class'] = array("application/java", "application/java-byte-code", "application/octet-stream", "application/x-java-class", "application/x-java.vm");
$mime_type_match['clp'] = array("application/x-msclip");
$mime_type_match['cmc'] = array("application/vnd.cosmocaller");
$mime_type_match['cmdf'] = array("chemical/x-cmdf");
$mime_type_match['cml'] = array("chemical/x-cml");
$mime_type_match['cmp'] = array("application/vnd.yellowriver-custom-menu");
$mime_type_match['cmx'] = array("application/x-cmx", "image/x-cmx");
$mime_type_match['cod'] = array("image/cis-cod");
$mime_type_match['com'] = array("text/plain", "application/octet-stream");
$mime_type_match['conf'] = array("text/plain");
$mime_type_match['config'] = array("application/x-ns-proxy-autoconfig");
$mime_type_match['cpio'] = array("application/x-cpio");
$mime_type_match['cpp'] = array("text/x-c");
$mime_type_match['cpt'] = array("application/mac-compactpro", "application/x-compactpro", "application/x-cpt");
$mime_type_match['crd'] = array("application/x-mscardfile");
$mime_type_match['crl'] = array("application/pkix-crl", "application/pkcs-crl");
$mime_type_match['crt'] = array("application/pkix-cert", "application/x-x509-ca-cert", "application/x-x509-user-cert");
$mime_type_match['csh'] = array("application/x-csh", "text/x-script.csh");
$mime_type_match['csm'] = array("chemical/x-csml");
$mime_type_match['csml'] = array("chemical/x-csml");
$mime_type_match['csp'] = array("application/vnd.commonspace");
$mime_type_match['css'] = array("text/css", "application/x-pointplus");
$mime_type_match['cst'] = array("application/vnd.commonspace");
$mime_type_match['cub'] = array("chemical/x-gaussian-cube");
$mime_type_match['curl'] = array("text/vnd.curl");
$mime_type_match['cw'] = array("application/prs.cww");
$mime_type_match['cww'] = array("application/prs.cww");
$mime_type_match['cxx'] = array("text/plain");
$mime_type_match['daf'] = array("application/vnd.Mobius.DAF");
$mime_type_match['dcm'] = array("x-lml/x-evm");
$mime_type_match['dcr'] = array("application/x-director");
$mime_type_match['dcx'] = array("image/x-dcx");
$mime_type_match['ddd'] = array("application/vnd.fujixerox.ddd");
$mime_type_match['deepv'] = array("application/x-deepv");
$mime_type_match['def'] = array("text/plain");
$mime_type_match['der'] = array("application/pkix-cert", "application/x-x509-ca-cert");
$mime_type_match['dib'] = array("image/bmp");
$mime_type_match['dic'] = array("text/plain");
$mime_type_match['dif'] = array("video/x-dv");
$mime_type_match['dir'] = array("application/x-director");
$mime_type_match['dis'] = array("application/vnd.Mobius.DIS");
$mime_type_match['dl'] = array("video/dl", "video/x-dl");
$mime_type_match['dll'] = array("application/x-msdownload");
$mime_type_match['dms'] = array("application/octet-stream");
$mime_type_match['dna'] = array("application/vnd.dna");
$mime_type_match['doc'] = array("application/msword");
$mime_type_match['dor'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['dot'] = array("application/msword", "application/x-dot");
$mime_type_match['dp'] = array("application/commonground");
$mime_type_match['dpg'] = array("application/vnd.dpgraph");
$mime_type_match['dpgraph'] = array("application/vnd.dpgraph");
$mime_type_match['drw'] = array("application/drafting");
$mime_type_match['dsc'] = array("text/prs.lines.tag");
$mime_type_match['dtd'] = array("application/xml", "text/xml");
$mime_type_match['dump'] = array("application/octet-stream");
$mime_type_match['dv'] = array("video/x-dv");
$mime_type_match['dvi'] = array("application/x-dvi");
$mime_type_match['dwf'] = array("model/vnd.dwf", "drawing/x-dwf", "drawing/x-dwf");
$mime_type_match['dwg'] = array("image/vnd.dwg", "application/acad", "application/autocad", "image/vnd", "image/x-dwg");
$mime_type_match['dx'] = array("chemical/x-jcamp-dx");
$mime_type_match['dxf'] = array("image/vnd.dxf", "application/dxf", "image/x-dwg", "image/x-dxf");
$mime_type_match['dxr'] = array("application/vnd.dxr", "application/x-director");
$mime_type_match['ebk'] = array("application/x-expandedbook");
$mime_type_match['ecelp4800'] = array("audio/vnd.nuera.ecelp4800");
$mime_type_match['ecelp7470'] = array("audio/vnd.nuera.ecelp7470");
$mime_type_match['edm'] = array("application/vnd.novadigm.EDM");
$mime_type_match['edx'] = array("application/vnd.novadigm.EDX");
$mime_type_match['ei6'] = array("application/vnd.pg.osasli");
$mime_type_match['el'] = array("text/x-script.elisp");
$mime_type_match['elc'] = array("application/x-bytecode.elisp", "application/x-elc");
$mime_type_match['emb'] = array("chemical/x-embl-dl-nucleotide");
$mime_type_match['embl'] = array("chemical/x-embl-dl-nucleotide");
$mime_type_match['eml'] = array("message/rfc822");
$mime_type_match['enc'] = array("video/mpeg");
$mime_type_match['env'] = array("application/x-envoy");
$mime_type_match['eol'] = array("audio/vnd.digital-winds");
$mime_type_match['epb'] = array("application/x-epublisher");
$mime_type_match['eps'] = array("application/postscript");
$mime_type_match['es'] = array("application/x-esrehber", "audio/echospeech");
$mime_type_match['esl'] = array("audio/echospeech");
$mime_type_match['etc'] = array("application/x-earthtime");
$mime_type_match['etx'] = array("text/x-setext");
$mime_type_match['evm'] = array("x-lml/x-evm");
$mime_type_match['evy'] = array("application/envoy", "application/x-envoy");
$mime_type_match['exc'] = array("text/plain");
$mime_type_match['exe'] = array("application/octet-stream", "application/x-msdownload");
$mime_type_match['ext'] = array("application/vnd.novadigm.EXT");
$mime_type_match['ez'] = array("application/andrew-inset");
$mime_type_match['f'] = array("text/plain", "text/x-fortran");
$mime_type_match['f77'] = array("text/x-fortran");
$mime_type_match['f90'] = array("text/plain", "text/x-fortran");
$mime_type_match['faxmgr'] = array("application/x-fax-manager");
$mime_type_match['faxmgrjob'] = array("application/x-fax-manager-job");
$mime_type_match['fbs'] = array("image/vnd.fastbidsheet");
$mime_type_match['fdf'] = array("application/vnd.fdf");
$mime_type_match['fdml'] = array("text/html");
$mime_type_match['fg5'] = array("application/vnd.fujitsu.oasysgp");
$mime_type_match['fgd'] = array("application/x-director");
$mime_type_match['fh'] = array("image/x-freehand");
$mime_type_match['fh4'] = array("image/x-freehand");
$mime_type_match['fh5'] = array("image/x-freehand");
$mime_type_match['fh7'] = array("image/x-freehand");
$mime_type_match['fhc'] = array("image/x-freehand");
$mime_type_match['fif'] = array("application/fractals", "image/fif");
$mime_type_match['fli'] = array("video/fli", "video/x-fli");
$mime_type_match['flo'] = array("image/florian");
$mime_type_match['flx'] = array("text/vnd.fmi.flexstor", "text/html");
$mime_type_match['fly'] = array("text/vnd.fly");
$mime_type_match['fm'] = array("application/x-framemaker", "application/x-maker");
$mime_type_match['fmf'] = array("video/x-atomic3d-feature");
$mime_type_match['fml'] = array("application/file-mirror-list", "application/x-file-mirror-list");
$mime_type_match['for'] = array("text/plain", "text/x-fortran");
$mime_type_match['fp5'] = array("application/filemaker5");
$mime_type_match['fpx'] = array("application/vnd.netfpx", "image/vnd.fpx", "image/vnd.net-fpx", "image/x-fpx");
$mime_type_match['frame'] = array("application/x-framemaker");
$mime_type_match['frl'] = array("application/freeloader");
$mime_type_match['frm'] = array("application/vnd.ufdl", "application/vnd.xfdl", "application/x-framemaker");
$mime_type_match['fst'] = array("image/vnd.fst");
$mime_type_match['fti'] = array("application/vnd.anser-web-funds-transfer-initiation");
$mime_type_match['funk'] = array("audio/make");
$mime_type_match['fvi'] = array("video/isivideo");
$mime_type_match['fvt'] = array("video/vnd.fvt");
$mime_type_match['g'] = array("text/plain");
$mime_type_match['g3'] = array("image/g3fax");
$mime_type_match['gac'] = array("application/vnd.groove-account");
$mime_type_match['gau'] = array("chemical/x-gaussian-input");
$mime_type_match['gdb'] = array("x-lml/x-gdb");
$mime_type_match['gdl'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['gif'] = array("image/gif");
$mime_type_match['gim'] = array("application/vnd.groove-identity-message");
$mime_type_match['gl'] = array("video/gl", "video/x-gl");
$mime_type_match['gph'] = array("application/vnd.FloGraphIt");
$mime_type_match['gps'] = array("application/x-gps");
$mime_type_match['gqf'] = array("application/vnd.grafeq");
$mime_type_match['gqs'] = array("application/vnd.grafeq");
$mime_type_match['grv'] = array("application/vnd.groove-injector");
$mime_type_match['gsd'] = array("audio/x-gsm");
$mime_type_match['gsm'] = array("model/vnd.gdl", "model/vnd.gs.gdl", "audio/x-gsm");
$mime_type_match['gsp'] = array("application/x-gsp");
$mime_type_match['gss'] = array("application/x-gss");
$mime_type_match['gtar'] = array("application/x-gtar");
$mime_type_match['gtm'] = array("application/vnd.froove-tool-message", "application/vnd.groove-tool-message");
$mime_type_match['gtp'] = array("application/bsi-gtp");
$mime_type_match['gtw'] = array("model/vnd.gtw");
$mime_type_match['gz'] = array("application/x-compressed", "application/x-gzip");
$mime_type_match['gzip'] = array("application/x-gzip", "multipart/x-gzip");
$mime_type_match['h'] = array("text/plain", "text/x-h");
$mime_type_match['hdf'] = array("application/x-hdf");
$mime_type_match['hdml'] = array("text/x-hdml");
$mime_type_match['help'] = array("application/x-helpfile");
$mime_type_match['hgl'] = array("application/vnd.hp-HPGL");
$mime_type_match['hh'] = array("text/plain", "text/x-h");
$mime_type_match['hlb'] = array("text/x-script");
$mime_type_match['hlp'] = array("application/hlp", "application/winhlp", "application/x-helpfile", "application/x-winhelp");
$mime_type_match['hpg'] = array("application/vnd.hp-HPGL");
$mime_type_match['hpgl'] = array("application/vnd.hp-HPGL");
$mime_type_match['hpi'] = array("application/vnd.hp-hpid");
$mime_type_match['hpid'] = array("application/vnd.hp-hpid");
$mime_type_match['hps'] = array("application/vnd.hp-hps");
$mime_type_match['hqx'] = array("application/mac-binhex40", "application/binhex", "application/binhex4", "application/mac-binhex", "application/x-binhex40", "application/x-mac-binhex40");
$mime_type_match['hta'] = array("application/hta");
$mime_type_match['htc'] = array("text/x-component");
$mime_type_match['htm'] = array("text/html");
$mime_type_match['html'] = array("text/html");
$mime_type_match['htmls'] = array("text/html");
$mime_type_match['htt'] = array("text/webviewhtml");
$mime_type_match['htx'] = array("text/html");
$mime_type_match['ic0'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic1'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic2'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic3'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic4'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic5'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic6'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic7'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic8'] = array("application/vnd.commerce-battelle");
$mime_type_match['ica'] = array("application/vnd.commerce-battelle");
$mime_type_match['icc'] = array("application/vnd.commerce-battelle");
$mime_type_match['icd'] = array("application/vnd.commerce-battelle");
$mime_type_match['ice'] = array("x-conference/x-cooltalk");
$mime_type_match['icf'] = array("application/vnd.commerce-battelle");
$mime_type_match['ico'] = array("image/x-icon");
$mime_type_match['idc'] = array("text/plain");
$mime_type_match['ief'] = array("image/ief");
$mime_type_match['iefs'] = array("image/ief");
$mime_type_match['ifm'] = array("application/vnd.shana.informed.formdata");
$mime_type_match['ifs'] = array("image/ifs");
$mime_type_match['iges'] = array("model/iges", "application/iges");
$mime_type_match['igs'] = array("model/iges", "application/iges");
$mime_type_match['iif'] = array("application/vnd.shana.informed.interchange");
$mime_type_match['iii'] = array("application/x-iphone");
$mime_type_match['ima'] = array("application/x-ima");
$mime_type_match['imap'] = array("application/x-httpd-imap");
$mime_type_match['imd'] = array("application/immedia");
$mime_type_match['imp'] = array("application/vnd.accpac.simply.imp");
$mime_type_match['ims'] = array("application/immedia");
$mime_type_match['inf'] = array("application/inf");
$mime_type_match['ins'] = array("application/x-NET-Install", "application/x-insight", "application/x-internet-signup");
$mime_type_match['insight'] = array("application/x-insight");
$mime_type_match['inst'] = array("application/x-install");
$mime_type_match['ip'] = array("application/x-ip2");
$mime_type_match['ipk'] = array("application/vnd.shana.informed.package");
$mime_type_match['ips'] = array("application/x-ipscript");
$mime_type_match['ipx'] = array("application/x-ipix");
$mime_type_match['ism'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['isp'] = array("application/x-internet-signup");
$mime_type_match['ist'] = array("chemical/x-isostar");
$mime_type_match['istr'] = array("chemical/x-isostar");
$mime_type_match['isu'] = array("video/x-isvideo");
$mime_type_match['it'] = array("audio/it", "audio/x-mod");
$mime_type_match['itp'] = array("application/vnd.shana.informed.formtemp");
$mime_type_match['itz'] = array("audio/x-mod");
$mime_type_match['iv'] = array("application/x-inventor");
$mime_type_match['ivf'] = array("video/x-ivf");
$mime_type_match['ivr'] = array("i-world/i-vrml");
$mime_type_match['ivy'] = array("application/x-livescreen");
$mime_type_match['jad'] = array("text/vnd.sun.j2me.app-descriptor");
$mime_type_match['jam'] = array("audio/x-jam");
$mime_type_match['jar'] = array("application/java-archive", "application/x-java-archive");
$mime_type_match['jav'] = array("text/plain", "text/x-java-source");
$mime_type_match['java'] = array("text/plain", "text/x-java-source");
$mime_type_match['jcm'] = array("application/x-java-commerce");
$mime_type_match['jdx'] = array("chemical/x-jcamp-dx");
$mime_type_match['jfif'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jfif-tbnl'] = array("image/jpeg");
$mime_type_match['jpe'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jpeg'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jpg'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jps'] = array("image/x-jps");
$mime_type_match['js'] = array("application/x-javascript", "application/x-ns-proxy-autoconfig");
$mime_type_match['jut'] = array("image/jutvision");
$mime_type_match['jvs'] = array("application/x-ns-proxy-autoconfig");
$mime_type_match['jwc'] = array("application/jwc");
$mime_type_match['kar'] = array("audio/midi", "music/x-karaoke");
$mime_type_match['kin'] = array("chemical/x-kinemage");
$mime_type_match['ksh'] = array("application/x-ksh", "text/x-script.ksh");
$mime_type_match['la'] = array("audio/nspaudio", "audio/x-nspaudio");
$mime_type_match['lak'] = array("x-lml/x-lak");
$mime_type_match['lam'] = array("audio/x-liveaudio");
$mime_type_match['latex'] = array("application/x-latex");
$mime_type_match['lcc'] = array("application/fastman");
$mime_type_match['lcl'] = array("application/x-digitalloca");
$mime_type_match['lcr'] = array("application/x-digitalloca");
$mime_type_match['lgh'] = array("application/lgh");
$mime_type_match['lha'] = array("application/lha", "application/octet-stream", "application/x-lha");
$mime_type_match['lhx'] = array("application/octet-stream");
$mime_type_match['lic'] = array("application/x-enterlicense");
$mime_type_match['licmgr'] = array("application/x-licensemgr");
$mime_type_match['list'] = array("text/plain");
$mime_type_match['list3820'] = array("application/vnd.ibm.modcap");
$mime_type_match['listafp'] = array("application/vnd.ibm.modcap");
$mime_type_match['lma'] = array("audio/nspaudio", "audio/x-nspaudio");
$mime_type_match['lml'] = array("x-lml/x-lml");
$mime_type_match['lmlpack'] = array("x-lml/x-lmlpack");
$mime_type_match['lmp'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['log'] = array("text/plain");
$mime_type_match['lsf'] = array("video/x-la-asf", "video/x-ms-asf");
$mime_type_match['lsp'] = array("application/x-lisp", "text/x-script.lisp");
$mime_type_match['lst'] = array("text/plain");
$mime_type_match['lsx'] = array("text/x-la-asf", "video/x-la-asf", "video/x-ms-asf");
$mime_type_match['ltx'] = array("application/x-latex");
$mime_type_match['lvp'] = array("audio/vnd.lucent.voice");
$mime_type_match['lwp'] = array("application/vnd.lotus-wordpro");
$mime_type_match['lzh'] = array("application/octet-stream", "application/x-lzh");
$mime_type_match['lzx'] = array("application/lzx", "application/octet-stream", "application/x-lzx");
$mime_type_match['m'] = array("text/plain", "text/x-m");
$mime_type_match['m13'] = array("application/x-msmediaview");
$mime_type_match['m14'] = array("application/x-msmediaview");
$mime_type_match['m1v'] = array("video/mpeg");
$mime_type_match['m2a'] = array("audio/mpeg");
$mime_type_match['m2v'] = array("video/mpeg");
$mime_type_match['m3a'] = array("audio/mpeg");
$mime_type_match['m3u'] = array("audio/mpegurl", "audio/x-mpegurl", "audio/x-mpequrl", "audio/x-scpls", "uadio/scpls");
$mime_type_match['ma'] = array("application/mathematica-old", "application/mathematica");
$mime_type_match['mag'] = array("application/vnd.ecowin.chart");
$mime_type_match['mail'] = array("application/x-mailfolder");
$mime_type_match['maker'] = array("application/x-framemaker");
$mime_type_match['man'] = array("application/x-troff-man");
$mime_type_match['map'] = array("application/x-navimap", "magnus-internal/imagemap");
$mime_type_match['mar'] = array("text/plain");
$mime_type_match['mb'] = array("application/mathematica-old", "application/mathematica");
$mime_type_match['mbd'] = array("application/mbedlet");
$mime_type_match['mbm'] = array("image/x-epoc-mbm");
$mime_type_match['mc$'] = array("application/x-magic-cap-package-1.0");
$mime_type_match['mcd'] = array("application/vnd.mcd", "application/vnd.vectorworks", "application/mcad", "application/x-mathcad");
$mime_type_match['mcf'] = array("image/vasa", "text/mcf");
$mime_type_match['mcm'] = array("chemical/x-macmolecule");
$mime_type_match['mcp'] = array("application/netmc");
$mime_type_match['mct'] = array("application/x-mascot");
$mime_type_match['mdb'] = array("application/msaccess", "application/x-msaccess");
$mime_type_match['mdz'] = array("audio/x-mod");
$mime_type_match['me'] = array("application/x-troff-me");
$mime_type_match['med'] = array("application/x-att-a2bmusic-pu");
$mime_type_match['mes'] = array("application/x-att-a2bmusic");
$mime_type_match['mesh'] = array("model/mesh");
$mime_type_match['mht'] = array("message/rfc822");
$mime_type_match['mhtml'] = array("message/rfc822");
$mime_type_match['mi'] = array("application/x-mif");
$mime_type_match['mid'] = array("application/x-midi", "audio/mid", "audio/midi", "audio/x-mid", "audio/x-midi", "music/crescendo", "x-music/x-midi");
$mime_type_match['midi'] = array("application/x-midi", "audio/midi", "audio/x-mid", "audio/x-midi", "music/crescendo", "x-music/x-midi");
$mime_type_match['mif'] = array("application/vnd.mif", "application/x-frame", "application/x-mif");
$mime_type_match['mil'] = array("image/x-cals");
$mime_type_match['mime'] = array("message/rfc822", "www/mime");
$mime_type_match['mio'] = array("audio/x-mio");
$mime_type_match['mjf'] = array("audio/x-vnd.AudioExplosion.MjuiceMediaFile");
$mime_type_match['mjpg'] = array("video/x-motion-jpeg");
$mime_type_match['ml5'] = array("application/ml5");
$mime_type_match['mm'] = array("application/base64", "application/x-meme");
$mime_type_match['mmd'] = array("chemical/x-macromodel", "chemical/x-macromodel-input");
$mime_type_match['mme'] = array("application/base64");
$mime_type_match['mmod'] = array("chemical/x-macromodel-input");
$mime_type_match['mmr'] = array("image/vnd.fujixerox.edmics-mmr");
$mime_type_match['mng'] = array("video/x-mng");
$mime_type_match['mny'] = array("application/x-msmoney");
$mime_type_match['moc'] = array("application/x-mocha");
$mime_type_match['mocha'] = array("application/x-mocha");
$mime_type_match['mod'] = array("audio/mod", "audio/x-mod");
$mime_type_match['mof'] = array("application/x-yumekara");
$mime_type_match['mol'] = array("chemical/x-mdl-molfile", "chemical/x-mdl-molfile");
$mime_type_match['moov'] = array("video/quicktime");
$mime_type_match['mop'] = array("chemical/x-mopac-input");
$mime_type_match['mov'] = array("video/quicktime");
$mime_type_match['movie'] = array("video/x-sgi-movie");
$mime_type_match['mp2'] = array("video/mpeg", "audio/mpeg", "audio/x-mpeg", "video/x-mpeg", "video/x-mpeg2a");
$mime_type_match['mp2a'] = array("audio/x-mpeg2");
$mime_type_match['mp2v'] = array("video/x-mpeg2");
$mime_type_match['mp3'] = array("video/mpeg", "audio/mp3", "audio/mpeg", "audio/mpeg3", "audio/mpg", "audio/x-mpeg", "audio/x-mpeg-3", "video/x-mpeg");
$mime_type_match['mp3url'] = array("audio/x-mpegurl");
$mime_type_match['mpa'] = array("video/mpeg", "audio/mpeg");
$mime_type_match['mpa2'] = array("audio/x-mpeg2");
$mime_type_match['mpc'] = array("application/x-project");
$mime_type_match['mpd'] = array("application/vnd.ms-project");
$mime_type_match['mpe'] = array("video/mpeg");
$mime_type_match['mpeg'] = array("video/mpeg");
$mime_type_match['mpf'] = array("text/vnd.ms-mediapackage", "text/vnd-mediapackage");
$mime_type_match['mpg'] = array("video/mpegaudio/mpeg");
$mime_type_match['mpga'] = array("audio/mpeg");
$mime_type_match['mpp'] = array("application/vnd.ms-project");
$mime_type_match['mps'] = array("application/x-mapserver", "video/x-mpeg-system");
$mime_type_match['mpt'] = array("application/vnd.ms-project", "application/x-project");
$mime_type_match['mpv'] = array("application/x-project", "video/mpeg");
$mime_type_match['mpv2'] = array("video/mpeg", "video/x-mpeg2");
$mime_type_match['mpx'] = array("application/x-project");
$mime_type_match['mpy'] = array("application/vnd.ibm.MiniPay");
$mime_type_match['mrc'] = array("application/marc");
$mime_type_match['mrl'] = array("text/x-mrml");
$mime_type_match['ms'] = array("application/x-troff-ms");
$mime_type_match['msf'] = array("application/vnd.epson.msf");
$mime_type_match['msh'] = array("model/mesh");
$mime_type_match['msl'] = array("application/vnd.Mobius.MSL");
$mime_type_match['msm'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['mss'] = array("audio/mss");
$mime_type_match['msv'] = array("application/x-mystars-view");
$mime_type_match['mts'] = array("model/vnd.mts", "application/metastream");
$mime_type_match['mus'] = array("application/vnd.musician");
$mime_type_match['mv'] = array("video/x-sgi-movie");
$mime_type_match['mwc'] = array("application/vnd.dpgraph");
$mime_type_match['mxs'] = array("application/vnd.triscape.mxs");
$mime_type_match['my'] = array("audio/make");
$mime_type_match['mzz'] = array("application/x-vnd.AudioExplosion.mzz");
$mime_type_match['nap'] = array("image/naplps");
$mime_type_match['naplps'] = array("image/naplps");
$mime_type_match['nb'] = array("application/mathematica");
$mime_type_match['nc'] = array("application/x-netcdf");
$mime_type_match['nclk'] = array("text/html");
$mime_type_match['ncm'] = array("application/vnd.nokia.configuration-message");
$mime_type_match['ndb'] = array("x-lml/x-ndb");
$mime_type_match['ndl'] = array("application/vnd.lotus-notes");
$mime_type_match['nif'] = array("application/x-nif", "image/x-niff");
$mime_type_match['niff'] = array("image/x-niff");
$mime_type_match['nix'] = array("application/x-mix-transfer");
$mime_type_match['nls'] = array("text/nls");
$mime_type_match['nml'] = array("application/vnd.enliven");
$mime_type_match['nmz'] = array("application/x-scream");
$mime_type_match['nnd'] = array("application/vnd.noblenet-directory");
$mime_type_match['nns'] = array("application/vnd.noblenet-sealer");
$mime_type_match['nnw'] = array("application/vnd.noblenet-web");
$mime_type_match['npx'] = array("application/x-netfpx");
$mime_type_match['ns2'] = array("application/vnd.lotus-notes");
$mime_type_match['ns3'] = array("application/vnd.lotus-notes");
$mime_type_match['ns4'] = array("application/vnd.lotus-notes");
$mime_type_match['nsc'] = array("application/x-conference");
$mime_type_match['nsf'] = array("application/vnd.lotus-notes");
$mime_type_match['nsg'] = array("application/vnd.lotus-notes");
$mime_type_match['nsh'] = array("application/vnd.lotus-notes");
$mime_type_match['ntf'] = array("application/vnd.lotus-notes");
$mime_type_match['nvd'] = array("application/x-navidoc");
$mime_type_match['nvm'] = array("application/x-navimap");
$mime_type_match['nws'] = array("message/rfc822");
$mime_type_match['o'] = array("application/octet-stream");
$mime_type_match['oa2'] = array("application/vnd.fujitsu.oasys2");
$mime_type_match['oa3'] = array("application/vnd.fujitsu.oasys3");
$mime_type_match['oas'] = array("application/vnd.fujitsu.oasys");
$mime_type_match['obd'] = array("application/x-msbinder");
$mime_type_match['oda'] = array("application/oda");
$mime_type_match['omc'] = array("application/x-omc");
$mime_type_match['omcd'] = array("application/x-omcdatamaker");
$mime_type_match['omcr'] = array("application/x-omcregerator");
$mime_type_match['or2'] = array("application/vnd.lotus-organizer");
$mime_type_match['or3'] = array("application/vnd.lotus-organizer");
$mime_type_match['org'] = array("application/vnd.lotus-organizer");
$mime_type_match['orq'] = array("application/ocsp-request");
$mime_type_match['ors'] = array("application/ocsp-response");
$mime_type_match['ota'] = array("image/x-ota-bitmap");
$mime_type_match['p'] = array("text/x-pascal");
$mime_type_match['p10'] = array("application/pkcs10", "application/x-pkcs10");
$mime_type_match['p12'] = array("application/pkcs-12", "application/x-pkcs12");
$mime_type_match['p7a'] = array("application/x-pkcs7-signature");
$mime_type_match['p7b'] = array("application/x-pkcs7-certificates");
$mime_type_match['p7c'] = array("application/pkcs7-mime", "application/x-pkcs7-mime");
$mime_type_match['p7m'] = array("application/pkcs7-mime", "application/x-pkcs7-mime");
$mime_type_match['p7r'] = array("application/x-pkcs7-certreqresp");
$mime_type_match['p7s'] = array("application/pkcs7-signature");
$mime_type_match['pac'] = array("application/x-ns-proxy-autoconfig", "audio/x-pac");
$mime_type_match['pae'] = array("audio/x-epac");
$mime_type_match['pan'] = array("application/x-pan");
$mime_type_match['part'] = array("application/pro_eng");
$mime_type_match['pas'] = array("text/pascal");
$mime_type_match['pat'] = array("audio/x-pat");
$mime_type_match['pbd'] = array("application/vnd.powerbuilder6-s", "application/vnd.powerbuilder6", "application/vnd.powerbuilder7-s", "application/vnd.powerbuilder75-s", "application/vnd.powerbuilder75", "application/vnd.powerbuilder7");
$mime_type_match['pbm'] = array("image/x-portable-bitmap");
$mime_type_match['pcd'] = array("image/x-photo-cd");
$mime_type_match['pcl'] = array("application/vnd.hp-PCL", "application/x-pcl");
$mime_type_match['pct'] = array("image/x-pict");
$mime_type_match['pcx'] = array("image/x-pcx");
$mime_type_match['pda'] = array("image/x-pda");
$mime_type_match['pdb'] = array("chemical/x-pdb");
$mime_type_match['pdf'] = array("application/pdf");
$mime_type_match['pfr'] = array("application/font-tdpfr");
$mime_type_match['pfunk'] = array("audio/make", "audio/make.my.funk");
$mime_type_match['pfx'] = array("application/x-pkcs12");
$mime_type_match['pgm'] = array("image/x-portable-graymap", "image/x-portable-greymap");
$mime_type_match['pgn'] = array("application/x-chess-pgn");
$mime_type_match['pgp'] = array("application/pgp-encrypted");
$mime_type_match['pic'] = array("image/pict");
$mime_type_match['pict'] = array("image/pict", "image/x-pict");
$mime_type_match['pkg'] = array("application/x-newton-compatible-pkg");
$mime_type_match['pki'] = array("application/pkixcmp");
$mime_type_match['pko'] = array("application/vnd.ms-pki.pko");
$mime_type_match['pl'] = array("text/plain", "text/x-script.perl");
$mime_type_match['plc'] = array("application/vnd.Mobius.PLC");
$mime_type_match['plg'] = array("text/html");
$mime_type_match['plj'] = array("audio/vnd.everad.plj");
$mime_type_match['pls'] = array("audio/mpegurl", "audio/scpls", "audio/x-mpequrl", "audio/x-scpls", "audio/scpls");
$mime_type_match['plx'] = array("application/x-PiXCLscript");
$mime_type_match['pm'] = array("application/x-perl", "image/x-xpixmap", "text/x-script.perl-module");
$mime_type_match['pm4'] = array("application/x-pagemaker");
$mime_type_match['pm5'] = array("application/x-pagemaker");
$mime_type_match['pml'] = array("application/vnd.ctc-posml");
$mime_type_match['png'] = array("image/png", "image/x-png");
$mime_type_match['pnm'] = array("application/x-portable-anymap", "image/x-portable-anymap");
$mime_type_match['pot'] = array("application/vnd.ms-powerpoint", "application/mspowerpoint");
$mime_type_match['pov'] = array("model/x-pov");
$mime_type_match['ppa'] = array("application/vnd.ms-powerpoint");
$mime_type_match['ppm'] = array("image/x-portable-pixmap");
$mime_type_match['pps'] = array("application/vnd.ms-powerpoint", "application/mspowerpoint");
$mime_type_match['ppt'] = array("application/vnd.ms-powerpoint", "application/mspowerpoint", "application/powerpoint", "application/x-mspowerpoint");
$mime_type_match['ppz'] = array("application/mspowerpoint", "application/ppt");
$mime_type_match['pqf'] = array("application/x-cprplayer");
$mime_type_match['pqi'] = array("application/cprplayer");
$mime_type_match['pre'] = array("application/vnd.lotus-freelance", "application/x-freelance");
$mime_type_match['prf'] = array("application/pics-rules");
$mime_type_match['proxy'] = array("application/x-ns-proxy-autoconfig");
$mime_type_match['prt'] = array("application/pro_eng");
$mime_type_match['prz'] = array("application/vnd.lotus-freelance");
$mime_type_match['ps'] = array("application/postscript");
$mime_type_match['psd'] = array("application/octet-stream");
$mime_type_match['pseg3820'] = array("application/vnd.ibm.modcap");
$mime_type_match['psid'] = array("audio/prs.sid");
$mime_type_match['pti'] = array("image/prs.pti");
$mime_type_match['ptlk'] = array("application/listenup");
$mime_type_match['pub'] = array("application/x-mspublisher");
$mime_type_match['puz'] = array("application/x-crossword");
$mime_type_match['pvu'] = array("paleovu/x-pv");
$mime_type_match['pwn'] = array("application/vnd.3M.Post-it-Notes");
$mime_type_match['pwz'] = array("application/vnd.ms-powerpoint");
$mime_type_match['py'] = array("text/x-script.phyton");
$mime_type_match['pyc'] = array("applicaiton/x-bytecode.python");
$mime_type_match['qam'] = array("application/vnd.epson.quickanime");
$mime_type_match['qbo'] = array("application/vnd.intu.qbo");
$mime_type_match['qca'] = array("application/vnd.ericsson.quickcall");
$mime_type_match['qcall'] = array("application/vnd.ericsson.quickcall");
$mime_type_match['qcp'] = array("audio/vnd.qcelp");
$mime_type_match['qd3'] = array("x-world/x-3dmf");
$mime_type_match['qd3d'] = array("x-world/x-3dmf");
$mime_type_match['qfx'] = array("application/vnd.intu.qfx");
$mime_type_match['qif'] = array("image/x-quicktime");
$mime_type_match['qps'] = array("application/vnd.publishare-delta-tree");
$mime_type_match['qry'] = array("text/html");
$mime_type_match['qt'] = array("video/quicktime");
$mime_type_match['qtc'] = array("video/x-qtc");
$mime_type_match['qti'] = array("image/x-quicktime");
$mime_type_match['qtif'] = array("image/x-quicktime");
$mime_type_match['qtvr'] = array("video/quicktime");
$mime_type_match['r3t'] = array("text/vnd.rn-realtext3d");
$mime_type_match['ra'] = array("application/x-pn-realaudio", "audio/vnd.rn-realaudio", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin", "audio/x-realaudio");
$mime_type_match['ram'] = array("application/x-pn-realaudio", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin");
$mime_type_match['rar'] = array("application/x-rar-compressed", "application/octet-stream");
$mime_type_match['ras'] = array("application/x-cmu-raster", "image/cmu-raster", "image/x-cmu-raster");
$mime_type_match['rast'] = array("image/cmu-raster");
$mime_type_match['rb'] = array("application/x-rocketbook");
$mime_type_match['rct'] = array("application/prs.nprend");
$mime_type_match['rep'] = array("application/vnd.businessobjects");
$mime_type_match['rexx'] = array("text/x-script.rexx");
$mime_type_match['rf'] = array("image/vnd.rn-realflash");
$mime_type_match['rgb'] = array("image/x-rgb");
$mime_type_match['rjs'] = array("application/vnd.rn-realsystem-rjs");
$mime_type_match['rlc'] = array("image/vnd.fujixerox.edmics-rlc");
$mime_type_match['rlf'] = array("application/x-richlink");
$mime_type_match['rm'] = array("application/vnd.rn-realmedia", "application/x-pn-realaudio", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin");
$mime_type_match['rmi'] = array("audio/mid");
$mime_type_match['rmm'] = array("audio/x-pn-realaudio");
$mime_type_match['rmp'] = array("application/vnd.rn-rn_music_package", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin");
$mime_type_match['rmx'] = array("application/vnd.rn-realsystem-rmx");
$mime_type_match['rnd'] = array("application/prs.nprend");
$mime_type_match['rng'] = array("application/ringing-tones", "application/vnd.nokia.ringing-tone");
$mime_type_match['rnx'] = array("application/vnd.rn-realplayer");
$mime_type_match['roff'] = array("application/x-troff");
$mime_type_match['rp'] = array("image/vnd.rn-realpix");
$mime_type_match['rpm'] = array("application/x-pn-realaudio", "audio/x-pn-RealAudio-plugin", "audio/x-pn-realaudio-plugin");
$mime_type_match['rsm'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['rsml'] = array("application/vnd.rn-rsml");
$mime_type_match['rt'] = array("text/richtext", "text/vnd.rn-realtext");
$mime_type_match['rte'] = array("x-lml/x-gps");
$mime_type_match['rtf'] = array("text/richtext", "application/msword", "application/rtf", "application/x-rtf", "text/rtf");
$mime_type_match['rtg'] = array("application/metastream");
$mime_type_match['rts'] = array("application/x-rtsl");
$mime_type_match['rtx'] = array("text/richtext", "application/rtf");
$mime_type_match['rv'] = array("video/vnd.rn-realvideo");
$mime_type_match['rxn'] = array("chemical/x-mdl-rxn", "chemical/x-mdl-rxnfile");
$mime_type_match['s'] = array("text/x-asm");
$mime_type_match['s3m'] = array("audio/s3m", "audio/x-mod");
$mime_type_match['s3z'] = array("audio/x-mod");
$mime_type_match['sam'] = array("application/vnd.lotus-wordpro");
$mime_type_match['saveme'] = array("application/octet-stream");
$mime_type_match['sbk'] = array("application/x-tbook", "audio/x-sbk");
$mime_type_match['sc'] = array("application/x-showcase");
$mime_type_match['scd'] = array("application/x-msschedule");
$mime_type_match['scm'] = array("application/vnd.lotus-screencam", "application/x-lotusscreencam", "text/x-script.guile", "text/x-script.scheme", "video/x-scm");
$mime_type_match['scp'] = array("text/plain");
$mime_type_match['sct'] = array("text/scriptlet");
$mime_type_match['sdf'] = array("application/e-score", "chemical/x-mdl-sdf");
$mime_type_match['sdml'] = array("text/plain");
$mime_type_match['sdp'] = array("application/sdp", "application/x-sdp");
$mime_type_match['sdr'] = array("application/sounder");
$mime_type_match['sds'] = array("application/x-onlive");
$mime_type_match['sea'] = array("application/sea", "application/x-sea", "application/x-stuffit");
$mime_type_match['see'] = array("application/vnd.seemail");
$mime_type_match['ser'] = array("application/x-java-serialized-object");
$mime_type_match['set'] = array("application/set");
$mime_type_match['sgi-lpr'] = array("application/x-sgi-lpr");
$mime_type_match['sgm'] = array("text/sgml", "text/x-sgml");
$mime_type_match['sgml'] = array("text/sgml", "text/x-sgml");
$mime_type_match['sh'] = array("application/x-bsh", "application/x-sh", "application/x-shar", "text/x-script.sh");
$mime_type_match['sha'] = array("application/x-shar");
$mime_type_match['shar'] = array("application/x-bsh", "application/x-shar");
$mime_type_match['sho'] = array("application/x-showcase");
$mime_type_match['show'] = array("application/x-showcase");
$mime_type_match['showcase'] = array("application/x-showcase");
$mime_type_match['shtml'] = array("text/html", "magnus-internal/parsed-html", "text/x-server-parsed-html");
$mime_type_match['shw'] = array("application/presentations");
$mime_type_match['si'] = array("text/vnd.wap.si");
$mime_type_match['sic'] = array("application/vnd.wap.sic");
$mime_type_match['sid'] = array("audio/prs.sid", "audio/x-psid");
$mime_type_match['silo'] = array("model/mesh");
$mime_type_match['sis'] = array("application/vnd.symbian.install");
$mime_type_match['sit'] = array("application/x-sit", "application/x-stuffit");
$mime_type_match['skc'] = array("chemical/x-mdl-isis");
$mime_type_match['skd'] = array("application/vnd.koan", "application/x-koan");
$mime_type_match['skm'] = array("application/vnd.koan", "application/x-koan");
$mime_type_match['skp'] = array("application/vnd.koan", "application/x-koan");
$mime_type_match['skt'] = array("application/vnd.koan", "application/x-koan");
$mime_type_match['sl'] = array("text/vnd.wap.sl", "application/x-seelogo");
$mime_type_match['slc'] = array("application/vnd.wap.slc", "application/x-salsa");
$mime_type_match['slides'] = array("application/x-showcase");
$mime_type_match['slt'] = array("application/vnd.epson.salt");
$mime_type_match['smd'] = array("chemical/x-smd");
$mime_type_match['smi'] = array("application/smil", "chemical/x-daylight-smiles", "chemical/x-x-daylight-smiles");
$mime_type_match['smil'] = array("application/smil");
$mime_type_match['smp'] = array("application/studiom");
$mime_type_match['snd'] = array("audio/basic", "audio/x-adpcm");
$mime_type_match['sol'] = array("application/solids");
$mime_type_match['spc'] = array("application/x-pkcs7-certificates", "chemical/x-galactic-spc", "text/x-speech");
$mime_type_match['spl'] = array("application/futuresplash", "application/x-futuresplash");
$mime_type_match['spo'] = array("text/vnd.in3d.spot");
$mime_type_match['spot'] = array("text/vnd.in3d.spot");
$mime_type_match['spr'] = array("application/x-sprite");
$mime_type_match['sprite'] = array("application/x-sprite");
$mime_type_match['spt'] = array("application/x-spt");
$mime_type_match['src'] = array("application/x-wais-source");
$mime_type_match['ssf'] = array("application/vnd.epson.ssf");
$mime_type_match['ssi'] = array("text/x-server-parsed-html");
$mime_type_match['ssm'] = array("application/streamingmedia");
$mime_type_match['sst'] = array("application/vnd.ms-pki.certstore");
$mime_type_match['step'] = array("application/step");
$mime_type_match['stf'] = array("application/vnd.wt.stf");
$mime_type_match['stk'] = array("application/hyperstudio");
$mime_type_match['stl'] = array("application/sla", "application/vnd.ms-pki.stl", "application/x-navistyle");
$mime_type_match['stp'] = array("application/step");
$mime_type_match['str'] = array("application/vnd.pg.format", "audio/x-str");
$mime_type_match['sv4cpio'] = array("application/x-sv4cpio");
$mime_type_match['sv4crc'] = array("application/x-sv4crc");
$mime_type_match['svf'] = array("image/vnd.svf", "image/vnd", "image/x-dwg");
$mime_type_match['svg'] = array("image/svg-xml");
$mime_type_match['svh'] = array("image/svh");
$mime_type_match['svr'] = array("application/x-world", "x-world/x-svr");
$mime_type_match['swf'] = array("application/x-shockwave-flash");
$mime_type_match['swfl'] = array("application/x-shockwave-flash");
$mime_type_match['sys'] = array("video/x-mpeg-system");
$mime_type_match['t'] = array("application/x-troff");
$mime_type_match['tad'] = array("application/octet-stream");
$mime_type_match['tag'] = array("text/prs.lines.tag");
$mime_type_match['talk'] = array("plugin/talker", "text/x-speech", "x-plugin/x-talker");
$mime_type_match['tar'] = array("appliation/x-tar", "application/x-tar");
$mime_type_match['tardist'] = array("application/x-tardist");
$mime_type_match['taz'] = array("application/x-tar");
$mime_type_match['tbk'] = array("application/toolbook", "application/x-tbook");
$mime_type_match['tbp'] = array("application/x-timbuktu");
$mime_type_match['tbt'] = array("application/timbuktu");
$mime_type_match['tcl'] = array("application/x-tcl", "text/x-script.tcl");
$mime_type_match['tcsh'] = array("text/x-script.tcsh");
$mime_type_match['tex'] = array("application/x-tex");
$mime_type_match['texi'] = array("application/x-tex", "application/x-texinfo");
$mime_type_match['texinfo'] = array("application/x-texinfo");
$mime_type_match['text'] = array("text/plain", "application/plain", "application/text");
$mime_type_match['tgf'] = array("chemical/x-mdl-tgf");
$mime_type_match['tgz'] = array("application/gnutar", "application/x-compressed", "application/x-tar");
$mime_type_match['tif'] = array("image/tiff", "image/x-tiff");
$mime_type_match['tiff'] = array("image/tiff", "image/x-tiff");
$mime_type_match['tki'] = array("application/x-tkined");
$mime_type_match['tkined'] = array("application/x-tkined");
$mime_type_match['toc'] = array("application/toc");
$mime_type_match['tpl'] = array("application/vnd.groove-tool-template");
$mime_type_match['tr'] = array("application/x-troff");
$mime_type_match['tra'] = array("application/vnd.trueapp");
$mime_type_match['trk'] = array("x-lml/x-gps");
$mime_type_match['trm'] = array("application/x-msterminal");
$mime_type_match['tsi'] = array("audio/tsp-audio", "audio/tsplayer");
$mime_type_match['tsp'] = array("application/dsptype", "audio/tsplayer");
$mime_type_match['tsv'] = array("text/tab-separated-values");
$mime_type_match['ttf'] = array("application/octet-stream");
$mime_type_match['ttz'] = array("application/t-time");
$mime_type_match['turbot'] = array("image/florian");
$mime_type_match['tvm'] = array("application/x-tvml");
$mime_type_match['tvml'] = array("application/x-tvml");
$mime_type_match['txf'] = array("application/vnd.Mobius.TXF");
$mime_type_match['txt'] = array("text/plain", "application/text");
$mime_type_match['ufdl'] = array("application/vnd.ufdl");
$mime_type_match['uil'] = array("text/x-uil");
$mime_type_match['uni'] = array("text/uri-list");
$mime_type_match['unis'] = array("text/uri-list");
$mime_type_match['unv'] = array("application/i-deas");
$mime_type_match['uri'] = array("text/uri-list");
$mime_type_match['uris'] = array("text/uri-list");
$mime_type_match['urls'] = array("application/x-url-list");
$mime_type_match['ustar'] = array("application/x-ustar", "multipart/x-ustar");
$mime_type_match['uu'] = array("application/octet-stream", "application/uue", "text/x-uuencode");
$mime_type_match['uue'] = array("application/uue", "text/x-uuencode");
$mime_type_match['v5d'] = array("application/vis5d");
$mime_type_match['vbk'] = array("audio/vnd.nortel.vbk");
$mime_type_match['vbox'] = array("application/vnd.previewsystems.box");
$mime_type_match['vcd'] = array("application/x-cdlink");
$mime_type_match['vcf'] = array("text/x-vcard");
$mime_type_match['vcg'] = array("application/vnd.groove-vcard");
$mime_type_match['vcs'] = array("text/x-vCalendar");
$mime_type_match['vcx'] = array("application/vnd.vcx");
$mime_type_match['vda'] = array("application/vda");
$mime_type_match['vdo'] = array("video/vdo");
$mime_type_match['vew'] = array("application/vnd.lotus-approach", "application/groupwise");
$mime_type_match['vis'] = array("application/vnd.informix-visionary");
$mime_type_match['viv'] = array("video/vnd.vivo", "video/vivo");
$mime_type_match['vivo'] = array("video/vnd.vivo", "video/vivo");
$mime_type_match['vmd'] = array("application/vocaltec-media-desc", "chemical/x-vmd");
$mime_type_match['vmf'] = array("application/vocaltec-media-file");
$mime_type_match['vmi'] = array("application/x-dremacast-vms-info");
$mime_type_match['vms'] = array("application/x-dremacast-vms");
$mime_type_match['voc'] = array("audio/voc", "audio/x-voc");
$mime_type_match['vos'] = array("video/vosaic");
$mime_type_match['vox'] = array("audio/voxware");
$mime_type_match['vqe'] = array("audio/x-twinvq-plugin");
$mime_type_match['vqf'] = array("audio/x-twinvq");
$mime_type_match['vql'] = array("audio/x-twinvq", "audio/x-twinvq-plugin");
$mime_type_match['vre'] = array("x-world/x-vream");
$mime_type_match['vrj'] = array("x-world/x-vrt");
$mime_type_match['vrml'] = array("model/vrml", "application/x-vrml", "x-world/x-vrml");
$mime_type_match['vrt'] = array("x-world/x-vrt");
$mime_type_match['vrw'] = array("x-world/x-vream");
$mime_type_match['vsd'] = array("application/vnd.visio", "application/x-visio");
$mime_type_match['vsl'] = array("application/x-cnet-vsl");
$mime_type_match['vss'] = array("application/vnd.visio");
$mime_type_match['vst'] = array("application/vnd.visio", "application/x-visio");
$mime_type_match['vsw'] = array("application/vnd.visio", "application/x-visio");
$mime_type_match['vts'] = array("workbook/formulaone");
$mime_type_match['vtu'] = array("model/vnd.vtu");
$mime_type_match['w60'] = array("application/wordperfect6.0");
$mime_type_match['w61'] = array("application/wordperfect6.1");
$mime_type_match['w6w'] = array("application/msword");
$mime_type_match['wav'] = array("application/x-wav", "audio/wav", "audio/x-wav");
$mime_type_match['wax'] = array("audio/x-ms-wax");
$mime_type_match['wb1'] = array("application/x-qpro");
$mime_type_match['wbc'] = array("application/x-webshots");
$mime_type_match['wbmp'] = array("image/vnd.wap.wbmp");
$mime_type_match['wbxml'] = array("application/vnd.wap.sic", "application/vnd.wap.slc", "application/vnd.wap.wbxml", "application/vnd.wap.wmlc");
$mime_type_match['web'] = array("application/vnd.xara");
$mime_type_match['wi'] = array("image/wavelet");
$mime_type_match['win'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['wiz'] = array("application/msword");
$mime_type_match['wk1'] = array("application/vnd.lotus-1-2-3", "application/x-123");
$mime_type_match['wk3'] = array("application/vnd.lotus-1-2-3");
$mime_type_match['wk4'] = array("application/vnd.lotus-1-2-3");
$mime_type_match['wkz'] = array("application/x-wingz");
$mime_type_match['wm'] = array("video/x-ms-asf");
$mime_type_match['wma'] = array("audio/x-ms-wma");
$mime_type_match['wmf'] = array("application/x-msmetafile", "image/x-wmf", "windows/metafile");
$mime_type_match['wml'] = array("text/vnd.wap.wml");
$mime_type_match['wmlc'] = array("application/vnd.wap.wmlc");
$mime_type_match['wmls'] = array("text/vnd.wap.wmlscript");
$mime_type_match['wmlsc'] = array("application/vnd.wap.wmlscriptc");
$mime_type_match['wmv'] = array("video/x-ms-wmv");
$mime_type_match['wmx'] = array("video/x-ms-wmx");
$mime_type_match['word'] = array("application/msword");
$mime_type_match['wp'] = array("application/wordperfect");
$mime_type_match['wp5'] = array("application/wordperfect", "application/wordperfect6.0");
$mime_type_match['wp6'] = array("application/wordperfect");
$mime_type_match['wpd'] = array("application/wordperfect", "application/x-wpwin");
$mime_type_match['wpt'] = array("x-lml/x-gps");
$mime_type_match['wq1'] = array("application/x-lotus");
$mime_type_match['wri'] = array("application/mswrite", "application/x-mswrite", "application/x-wri");
$mime_type_match['wrl'] = array("model/vrml", "application/x-world", "i-world/i-vrml", "x-world/x-vrml");
$mime_type_match['wrz'] = array("model/vrml", "x-world/x-vrml");
$mime_type_match['wsc'] = array("text/sgml", "text/scriptlet");
$mime_type_match['wsrc'] = array("application/x-wais-source");
$mime_type_match['wtb'] = array("application/vnd.webturbo");
$mime_type_match['wtk'] = array("application/x-wintalk");
$mime_type_match['wtx'] = array("text/plain");
$mime_type_match['wv'] = array("video/wavelet");
$mime_type_match['wvx'] = array("video/x-ms-wvx");
$mime_type_match['wxl'] = array("application/x-wxl");
$mime_type_match['x3d'] = array("application/vnd.hzn-3d-crossword");
$mime_type_match['xar'] = array("application/vnd.xara", "application/vnd.xara");
$mime_type_match['xbd'] = array("application/vnd.fujixerox.docuworks.binder");
$mime_type_match['xbm'] = array("image/x-xbitmap", "image/x-xbm", "image/xbm");
$mime_type_match['xdm'] = array("application/x-xdma");
$mime_type_match['xdma'] = array("application/x-xdma");
$mime_type_match['xdr'] = array("video/x-amt-demorun");
$mime_type_match['xdw'] = array("application/vnd.fujixerox.docuworks");
$mime_type_match['xfdl'] = array("application/vnd.xfdl");
$mime_type_match['xgz'] = array("xgl/drawing");
$mime_type_match['xif'] = array("image/vnd.xiff");
$mime_type_match['xl'] = array("application/excel");
$mime_type_match['xla'] = array("application/excel", "application/vnd.ms-excel", "application/x-excel", "application/x-msexcel");
$mime_type_match['xlb'] = array("application/vnd.ms-excel", "application/excel", "application/x-excel");
$mime_type_match['xlc'] = array("application/vnd.ms-excel", "application/excel", "application/x-excel");
$mime_type_match['xld'] = array("application/excel", "application/x-excel");
$mime_type_match['xlk'] = array("application/excel", "application/x-excel");
$mime_type_match['xll'] = array("application/vnd.ms-excel", "application/excel", "application/x-excel");
$mime_type_match['xlm'] = array("application/vnd.ms-excel", "application/excel", "application/x-excel");
$mime_type_match['xls'] = array("application/vnd.ms-excel", "application/excel", "application/x-excel", "application/x-msexcel");
$mime_type_match['xlt'] = array("application/excel", "application/vnd.ms-excel", "application/x-excel");
$mime_type_match['xlv'] = array("application/excel", "application/x-excel");
$mime_type_match['xlw'] = array("application/vnd.ms-excel", "application/excel", "application/x-excel", "application/x-msexcel");
$mime_type_match['xm'] = array("audio/x-mod", "audio/xm");
$mime_type_match['xml'] = array("application/xml", "text/vnd.IPTC.NITF", "text/vnd.IPTC.NewsML", "text/vnd.wap.si", "text/vnd.wap.sl", "text/vnd.wap.wml", "text/xml");
$mime_type_match['xmz'] = array("audio/x-mod", "xgl/movie");
$mime_type_match['x-png'] = array("image/png");
$mime_type_match['xpix'] = array("application/x-vnd.ls-xpix");
$mime_type_match['xpm'] = array("image/x-xpixmap", "image/x-xpm", "image/xpm");
$mime_type_match['xpr'] = array("application/vnd.is-xpr");
$mime_type_match['xpw'] = array("application/vnd.intercon.formnet");
$mime_type_match['xpx'] = array("application/vnd.intercon.formnet");
$mime_type_match['xsl'] = array("text/xml", "text/xsl");
$mime_type_match['xsr'] = array("video/x-amt-showrun");
$mime_type_match['xul'] = array("text/xul");
$mime_type_match['xwd'] = array("image/x-xwd", "image/x-xwindowdump");
$mime_type_match['xyz'] = array("chemical/x-pdb", "chemical/x-xyz");
$mime_type_match['yz1'] = array("application/x-yz1");
$mime_type_match['Z'] = array("application/x-compressed");
$mime_type_match['zac'] = array("application/x-zaurus-zac");
$mime_type_match['zip'] = array("application/zip", "application/x-compressed", "application/x-zip-compressed", "multipart/x-zip");
$mime_type_match['zoo'] = array("application/octet-stream");
$mime_type_match['zsh'] = array("text/x-script.zsh");
$mime_type_match['ztardist'] = array("application/x-ztardist");
Original file list by excitex2 :
http://www.4homepages.de/forum/index.php?topic=15253.0
Thanks to excitex2
4) create a new icon .gif icon in templates/<your templates>/icons/ (in our example it should be mp3.gif)
this icon will be showed for the files that don't have thumbnails.
Sometimes you might receive an error without any MIME type i.e.
Invalid file type: (flv, )
In that case you must add an empty string:
$mime_type_match['flv'] = array("video/x-flv", "");
-
Hello~I have followed your instructions carefully.
I get a lot of errors in the panel when I go to add a new image, plus the file extension still does not work.
I am trying to make extensions for .psp .tub & .pfr
Would you be able to explain how to do this ~ possibly the information that would go into the template ~ which you indicated that we would need to look at the other templates to see what would go there. I've done that and copied and pasted what I thought would best fit for these extensions.
Thank you.
Raven
-
I get a lot of errors in the panel when I go to add a new image, plus the file extension still does not work.
I am trying to make extensions for .psp .tub & .pfr
Would you be able to explain how to do this
There is nothing more to explain and knowing the error messages are helpfull in 99 out of 100 cases ;)
-
After I follow your instructions ~ I get these errors when I go to add an image:
Warning: Cannot modify header information - headers already sent by (output started at /home/midnight/public_html/gallery/includes/upload_definitions.php:106) in /home/midnight/public_html/gallery/admin/admin_functions.php on line 168
Warning: Cannot modify header information - headers already sent by (output started at /home/midnight/public_html/gallery/includes/upload_definitions.php:106) in /home/midnight/public_html/gallery/admin/admin_functions.php on line 169
Warning: Cannot modify header information - headers already sent by (output started at /home/midnight/public_html/gallery/includes/upload_definitions.php:106) in /home/midnight/public_html/gallery/admin/admin_functions.php on line 170
Warning: Cannot modify header information - headers already sent by (output started at /home/midnight/public_html/gallery/includes/upload_definitions.php:106) in /home/midnight/public_html/gallery/admin/admin_functions.php on line 171
Warning: Cannot modify header information - headers already sent by (output started at /home/midnight/public_html/gallery/includes/upload_definitions.php:106) in /home/midnight/public_html/gallery/admin/admin_functions.php on line 172
-
http://www.4homepages.de/forum/index.php?topic=3378.0
and please follow the three steps in my signature ;)
-
Thank you ~ I should have known that lol ~ I deal with scripts all day ~ but not these type.
Well, that fixed that problem, but it won't allow me to upload the image with the .psp extension.
I get this error: Error uploading image file: Fallen Gizmo Design.psp
Fallen___Gizmo_Design.psp: Invalid file type (psp, application/octet-stream)
No database entry!
Do I need to use different coding in the template?
-
seems like u didnt read very carefuly, because this exact situation is explained in the tutorial ;)
-
I read it very carefully lol ~ bad thing is I'm trying to do 15 things at once and I didn't fully understand.
Got it now ~ lol. Could probably just delete out all my posts because your tut does make sense ~ ppl
just have to have their mind on one thing while doing it. lol
Thanks for all your help.
-
hi
I have done the thing with upload defeinition and still cant upload files they all give ectet/stream error
what should i do ,
look at my attachement for the file I edited :oops:
-
exact error please
-
this is the error
Error uploading image file:
yahoo.wav: Invalid file type (wav, audio/wav)
-
so where is audio/wav in this line?
$mime_type_match['wav'] = array("audio/x-wav");
Perhaps you should re-read the tutorial ones more ;)
-
upload_definition file content: by default nothing edited
$mime_type_match['jpg'] = array("image/jpg", "image/jpeg", "image/pjpeg");
$mime_type_match['jpeg'] = array("image/jpg", "image/jpeg", "image/pjpeg");
$mime_type_match['gif'] = array("image/gif");
$mime_type_match['png'] = array("image/png", "image/x-png");
$mime_type_match['tif'] = array("image/tiff", "application/octet-stream");
$mime_type_match['tiff'] = array("image/tiff", "application/octet-stream");
$mime_type_match['bmp'] = array("image/bmp", "image/x-ms-bmp");
$mime_type_match['aif'] = array("audio/x-aiff");
$mime_type_match['aiff'] = array("audio/x-aiff");
$mime_type_match['au'] = array("audio/basic");
$mime_type_match['snd'] = array("audio/basic");
$mime_type_match['mid'] = array("audio/x-midi", "audio/mid", "audio/midi");
$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg");
$mime_type_match['ra'] = array("audio/x-pn-realaudio");
$mime_type_match['ram'] = array("audio/x-pn-realaudio");
$mime_type_match['rm'] = array("audio/vnd.rn-realmedia", "application/vnd.rn-realmedia", "video/vnd.rn-realvideo", "application/vnd");
$mime_type_match['rpm'] = array("audio/x-pn-realaudio-plugin");
$mime_type_match['wav'] = array("audio/x-wav");
$mime_type_match['avi'] = array("video/x-msvideo", "video/avi");
$mime_type_match['mpg'] = array("video/mpeg");
$mime_type_match['mpeg'] = array("video/mpeg");
$mime_type_match['mpe'] = array("video/mpeg");
$mime_type_match['mov'] = array("video/quicktime");
$mime_type_match['qt'] = array("video/quicktime");
$mime_type_match['swf'] = array("application/x-shockwave-flash");
$mime_type_match['psd'] = array("application/octet-stream");
$mime_type_match['fla'] = array("application/octet-stream");
$mime_type_match['gz'] = array("application/gzip", "application/x-gzip-compressed");
$mime_type_match['rar'] = array("application/x-rar-compressed");
$mime_type_match['tar'] = array("application/x-tar");
$mime_type_match['gtar'] = array("application/x-gtar");
$mime_type_match['zip'] = array("application/zip", "application/x-zip-compressed");
$mime_type_match['sit'] = array("application/x-stuffit");
$mime_type_match['pdf'] = array("application/pdf", "application/x-pdf");
$mime_type_match['ai'] = array("application/postscript");
$mime_type_match['eps'] = array("application/postscript");
$mime_type_match['ps'] = array("application/postscript");
$mime_type_match['txt'] = array("text/plain", "text/richtext", "text/rtf", "text/html");
$mime_type_match['rtf'] = array("text/plain", "text/richtext", "text/rtf");
$mime_type_match['rtx'] = array("text/plain", "text/richtext", "text/rtf");
$mime_type_match['doc'] = array("application/msword");
$mime_type_match['xls'] = array("application/vnd", "application/x-msexcel");
$mime_type_match['ppt'] = array("application/vnd");
$mime_type_match['csv'] = array("text/comma-separated-values");
$mime_type_match['js'] = array("text/javascript");
$mime_type_match['css'] = array("text/css");
so what is the prob?
-
you must add the new MIME type into the array of 'wav' extension, the same way 'jpg', 'bmp' and othere have...
please read again the tutorial, everything is explained there.
$mime_type_match['wav'] = array("audio/x-wav", "audio/wav");
-
:oops: ty
I tried ur wav ext addintion and it worked just fine:)
so is there a special scheme for every file format?
like jpg,gif,png,aif,au,avi,mid,mov,mp3,mpg,swf,wav,ra,rm,zip,pdf,3gp,rar,wmv,wma,amr ?
:oops:
-
unfortunetly there are great many different mime types for common extensions, wich may vary on different web servers.
and in some cases it may be different on what system or what program was used to create sertain file...
-
Hi,
I have tried to add AMR format file and this error comes
Error uploading image file: BabyCry.amr
BabyCry.amr: Invalid file type (amr, application/octet-stream)
so I added the mime as u told and it was showing like this
$mime_type_match['amr'] = array("application/octet-stream");
and then i have also made a file with amr.html in templates/default/media/ but facing the same problem in uploading the AMR format file coming this error even
Error uploading image file: BabyCry.amr
BabyCry.amr: Invalid file type (amr, application/octet-stream)
plz help me in this problem.
Thanks & Regards.
-
did u add amr extension in the settings?
-
yes I have got it that I was forget to add the AMR extension in setting.
Thanks.
-
Hi there
well i followed the steps in how to add a new file exrension in my case it was 3gp!!! which works fine if i add a 3gp file via ftp and then add it from admin thru check new images but as a user it still giving me the invalid error message so can u lead me thru please in how to fix that?
-
did u add the extension in the settings?
-
it still giving me the invalid error message
I bet that's NOT the EXACT message it shows you.
-
did u add the extension in the settings?
well here's what i did exactly
in includes/upload_definitions.php
i added the following
$mime_type_match['3gp'] = array("video/quicktime");
and then i created html templates 3gp.html and i added that to media folder in my default template
and here's its code
<!-- Template file for 3GPP Files --><OBJECT id=JavaPlug0 height=280 width=300 classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>
<PARAM NAME="SRC" VALUE="{media_src}"><PARAM NAME="CONTROLS" VALUE="ImageWindow,ControlPanel">
<param name="_ExtentX" value="7938">
<param name="_ExtentY" value="7408">
<param name="AUTOSTART" value="1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</BODY><!--webbot bot="HTMLMarkup" endspan --></HTML></OBJECT>
and also i added 3gp.gif to icon folder
and from settings in the Valid file extensions i added 3gp near jpg
it still giving me the invalid error message
I bet that's NOT the EXACT message it shows you.
here's what i'm getting exactly
Error uploading image file:
24.3gp: Invalid file type (3gp, )
anyways here's the url to the copy that i have i'd appreciate if u can check it
http://www.immsu.com/4images/
(http://img502.imageshack.us/img502/9341/11bu.th.jpg) (http://img502.imageshack.us/my.php?image=11bu.jpg)
(http://img504.imageshack.us/img504/4042/23ze.th.jpg) (http://img504.imageshack.us/my.php?image=23ze.jpg)
click on thumb to enlarge
thanks for ur support
:)
-
Next time please search, this has been discused and answered before!
$mime_type_match['3gp'] = array("video/quicktime",""," ");
-
3) Open templates/<your templates>/media/ folder. Make sure you have a template with name of your new extension. (in our example there should be mp3.html template)
If there is none, then create one. I can not tell you what should be inside that template, because every extension must be handled differently, but you can look in other templates and see how they done it.
Hi! I did it with .rar, .doc and .ace extensions.. and they are working correctly, but i don´t want to show {media_icon} in the site of the download (I look zip template), i would like to show the thumbnail image from the file. Do you understand to me? how could i do it?
-
Apperently 4images does not support this... :?
I'll see if this could be changed though...
-
then will you create a mod? I tried it ... but when it put {thumbnail} the site show the random thumbnail :?
-
Ok, here is a quick and dirty fix:
in includes/functions.php find: "thumbnail" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),
Comment it out or remove it.
Then scroll up a few lines untill you find: $site_template->register_vars(array(
Insert above: $site_template->register_vars(array(
"thumbnail" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),
));
Now you should be able use {thumbnail} tag in the media templates.
-
wow!!! it works!!! thank you a lot!!! :lol:
-
i have another question... i would like to show the URL to the autor in the media templates for .gif and .jpg extensions. And only show the url to the author, which would be the condition so that it worked?
-
i have another question... i would like to show the URL to the autor in the media templates for .gif and .jpg extensions. And only show the url to the author, which would be the condition so that it worked?
I dont think this question is related to the topic ;)
Feel free start a new topic in mod request forum ;)
-
ok sorry.. i have already done it
-
so what about rmvb format?
I add rmvb but id doesn't work:/
-
so what about rmvb format?
What about it?
The tutorial is more then enough to understand what has to be done :roll:
I add rmvb but id doesn't work:/
too bad
-
hallihallo,
bei mir sieht es so aus: ich habe die datei c4d in die gallery hionzugefügt. das uploaden der datei funktioniert einwandfrei, es wird auch das icon gezeigt das ich angegeben habe. nun habe ich folgendes propblem. ich möchte das in der galerie das thumbnail in klein zu sehen ist und in der datei-detailansicht das grösser thumbnail. und wenn ich downloade bekomme ich die c4d datei. ich benutze phpthumb. wie kann ich das ganze realisieren?
-
I uploaded a screensaver file via FTP to my site, but how do i tell it is in the directory? I click "check new images" and nothing appears? Am I doing something wrong, or do I have to add the mime type as shown before it will recognize it? Thanks
-
Do exactly as it discribed here:
http://www.4homepages.de/forum/index.php?topic=3080.0
And then follow instructions from this topic
-
OK i followed it and it works. Mainly, I'm just an idiot. I had created the screensaver as an .exe instead of an scr.
-
All I want is the code to allow .wmv files to be valid uploads....
I must be an absolute retard though because I've read and re-read the instructions so many times and I'm still not getting it to work, i'm sure there's something i'm missing.
Can someone who's had success adding .wmv as a valid file extension please copy and paste it into here?
Cheers from a very disgruntled reader.
:oops: :cry: :cry: :?: :cry: :oops:
-
@ m3tallica and all other wmv-friends,
WMV as new valid file extension
1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions
2. for wmv-files add the following code line into your includes/upload_definitions.php
$mime_type_match['wmv'] = array("video/x-ms-wmv");
or this (update ...)
$mime_type_match['wmv'] = array("video/x-ms-wmv", "application/x-unknown");
3. create a new wmv.html in templates/<your_template>/media/ like this
<!-- Template file for WMV Movies -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
</embed>
<br>
4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this
(http://img458.imageshack.us/img458/2646/wmv2ym.gif)
... thats all ... now you can present wmv-files in your 4images gallery ... 8)
mawenzi
... a hint by v@no ...
http://www.4homepages.de/forum/index.php?topic=25376.msg139001#msg139001
-
Trying to upload AMR audio file but cant :(
i cant get no mime type at all :/
It says:
Error uploading image file:
test.amr: Invalid file type (amr,)
what shold i do now :/
-
This has been answered already (for different extension).
http://www.4homepages.de/forum/index.php?topic=7277.msg52515#msg52515
-
mawenzi - thankyou SO much man, it finally works!!!
:D :mrgreen: :lol:
-
@m3tallica ... nice to read ... :wink:
-
Hello all,
i am new and 4image is great, thanks. My question is: Can i play with 4images this format mms://www.meineurl.de:8080 this one play with mediaplayer. I have put all steps from this faq but when i upload then come this error "Bitte wählen Sie eine Bilddatei!"
Ca anyone help me.
Thanks eurofunny
-
try use .asx, .pls or .m3u type of playlist and add your mms:// url in there.
For example you can create one with MP player:
add one URL to the playlist, then go to File -> Save Now Playing Playlist
-
Okay thanks for your post. I have input this in the upload_definitions.php $mime_type_match['asx'] = array("asx, video/x-ms-asf"); and i have asx in the configurationpanel and i have the template for asx.html this
<!-- Template file for asx Movies -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="asx, video/x-ms-asf"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
<br>
and i have create the icon.........but when i upload .asx file it comes the error webcam.asx: Die Datei hat ein ungültiges Format (asx, video/x-ms-asf)
What can i do.....i have read the faq........Thanks eurofunny
is there not a way that the user can put the file automaticli by the upload without the playlistfile??
-
Ok i have found the error. Thanks
-
Ok i have found the error. Thanks
And, perhaps, you'd like to share it with us ? ;)
-
Ok, so I've read all of the steps of the tutorial and added my new file perfectly.
I can also download it with ease from my gallery (after reading other posts).
The problem that I'm having now is there is no image for it. I created a new template in the
templates/media folder. I copied the one for jpg.html and renamed it imf.html
All I see when I open my gallery and click that image is a red x.
I'm not sure what to do now. I've searched up and down. Can someone help me with the right code for this?
This is what I have now...
<!-- Template file for IMF Files -->
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
It's an incredimail file .imf
Thanks bunches!
-
What image are you talking about? About icon? Then perhaps you need to add imf.jpg into templates/<your template>/icons/
-
The file I uploaded was a .imf file so I had to add a new file extension because at first it wouldn't even upload the file. Then I followed the tutorials and I changed the code where specified and was able to upload the file. Then I copied the jpg.html template (in templates/media) and renamed it imf.html so that I would be able to view the file after the upload. But the problem I had is that I still could not view the file. Instead of seeing the file, I see only a red x. I'm wondering if someone can help me with this?
The code I showed in my first post was the code for my imf.html template. Is there something in it that I need to change?
Thanks.
-
I doubt you can view .imf files in the browser...
http://filext.com/detaillist.php?extdetail=IMF
-
Ok, thanks vano. I actually had to do a preview image manually and upload that and point the download url directly to the file on my server (in case anyone else has this problem). You were right, they weren't viewable in the browser. Oh well. Thanks for the help!
Erica
-
@ m3tallica and all other wmv-friends,
WMV as new valid file extensions
1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions
2. for wmv-files add the following code line into your includes/upload_definitions.php
$mime_type_match['wmv'] = array("video/x-ms-wmv");
3. create a new wmv.html in templates/<your_template>/media/ like this
<!-- Template file for WMV Movies -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
<br>
4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this
(http://img458.imageshack.us/img458/2646/wmv2ym.gif)
... thats all ... now you can present wmv-files in your 4images gallery ... 8)
mawenzi
Вроде все сделал как указанно выше. Файл загружается, воспроизводится на странице member.php, но при переходе в категорию с файлом страница просто не открывается. "Невозможно отобразить страницу". В чем может быть проблема?И еще вопрос, если можно. Что нужно сделать, чтобы воспроизводились файлы mpg? Заранее спасибо!
-
I am trying to add .wmv files to the allowed extensions. I've followed the instructions here as said and can't find a problem. When I try to upload a .wmv file I do not recieve an "error" message, however, the text "Select an Image File!" does appear... Any ideas on how I can fix this?
-
the files might be larger then max upload size set in php.ini
check phpinfo() and contact your host administrator if its too low, otherwise nothing you can do, but upload them via ftp
-
the files might be larger then max upload size set in php.ini
check phpinfo() and contact your host administrator if its too low, otherwise nothing you can do, but upload them via ftp
...wait...where am i supposed to be checking this info? php.ini is where? phpinfo() is where?
-
if you have 1.72 you find phpinfo in the CP.
there should be then a value for max uploaded file size
-
FAQ
-
I have a question about 3gp...
We have a lot of wmv videos on our server. The user only should view the wmv format!
Now I want to add a function that users can download these videos also in 3gp e.g. for their mobilephones.
I don´t know (don´t believe) if it´s possible to convert these videos automatically on the fly when the user will download this video in 3gp.
So I think I convert every video myself and load it to my server. So how can I add a button - Download as 3gp -
I´ll be happy when somebody has a nice idea :) or a better way for spending time (over 700 videos to convert) :?
-
download url wont work?
-
The download works, but users can only download this file what they seeing on details.php... e.g. the wmv video...
-
I'm sorry but i searched everything i could think of. My problem seems to be a bit different. When i try to upload a movie file, like an AVI it seems like its going to upload. I get no error message. then nothing uploads. The only thing i'm able to upload are images. Everything seems to be fine. I even tried to upload a file i know i didnt have an extention for and i did get an error so i know that works. I'm uploading movie files way under my upload limit so i know thats not the problem. Could someone help me with this?
-
are you sure that that filesize is less then upload_max_filesize set in php.ini ? (check phpinfo)
-
if you have 1.72 you find phpinfo in the CP.
there should be then a value for max uploaded file size
I am on 1.7.1
However, I did go to the control panel and adjust the max size to allow the video i am trying to upload, but it still returns with "please select an image file."
-
99% is that your files are bigger then upload_max_filesize value in php.ini
(read my previous reply)
-
hello mans i have one error :
Error uploading image file: guia_flv.fla
guia_flv.fla: Invalid file type (fla, application/octet-stream)
No database entry!
please man i need this modification :)
-
... make it similar as here ...
- http://www.4homepages.de/forum/index.php?topic=7277.msg32249#msg32249
- http://www.4homepages.de/forum/index.php?topic=7277.msg32249#msg32249
-
not have the answer ..
it you can put here please? with .flv extention
-
@ m3tallica and all other wmv-friends,
WMV as new valid file extensions
1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions
2. for wmv-files add the following code line into your includes/upload_definitions.php
$mime_type_match['wmv'] = array("video/x-ms-wmv");
3. create a new wmv.html in templates/<your_template>/media/ like this
<!-- Template file for WMV Movies -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
<br>
4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this
(http://img458.imageshack.us/img458/2646/wmv2ym.gif)
... thats all ... now you can present wmv-files in your 4images gallery ... 8)
mawenzi
i have try this but i got this error
http://www.funpoint.be/funpictures/categories.php?cat_id=6&sessionid=ede44dd90f7d59494a6aaef2e016f6ef
now my gallery is not working :(
http://www.funpoint.be/funpictures
-
@ m3tallica and all other wmv-friends,
WMV as new valid file extension
1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions
2. for wmv-files add the following code line into your includes/upload_definitions.php
$mime_type_match['wmv'] = array("video/x-ms-wmv");
or this (update ...)
$mime_type_match['wmv'] = array("video/x-ms-wmv", "application/x-unknown")
3. create a new wmv.html in templates/<your_template>/media/ like this
<!-- Template file for WMV Movies -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
<br>
4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this
(http://img458.imageshack.us/img458/2646/wmv2ym.gif)
... thats all ... now you can present wmv-files in your 4images gallery ... 8)
mawenzi
Oustanding..thanks, works perfectly...thanks for the advice
-
Great post. Thanks!
-
Hey, your instructions worked beautifully for the wmv's.
But I was hoping for something that would somehow produce a thumbnail through the autothumb process that's actually derived from the video itself. So lets say the video is of a beach, I need a beach to show up as the thumbnail. Can someone tell me how to do that? Pretty please?
-
you will have to do that yourself either with a certain kind of editing software or by playing the video and taking a screenshot
-
...
Oustanding..thanks, works perfectly...thanks for the advice
...
... thanks for the flowers ... :wink:
...
But I was hoping for something that would somehow produce a thumbnail through the autothumb process that's actually derived from the video itself.
...
... try this : Using ffmpeg to generate uploaded video thumbnails ...
... http://www.4homepages.de/forum/index.php?topic=12272.0 ...
-
thank you
-
hello
all file extensions are works fine except rm extension
i created rm.html
<!-- Template file for Real Audio Files -->
<embed src="{media_src}" type="application/x-pn-realaudio" hidden="true" autostart="true" loop="true" height="1" width="1"></embed>
{media_icon}<br />
and
jpg,gif,png,aif,au,avi,mid,mov,mp3,mpg,mpeg,swf,wav,ra,rm,zip,pdf,3gp,3gpp
in ACP
AND CHMOD 666/777 for all files are correct
<?php
/**************************************************************************
* *
* 4images - A Web Based Image Gallery Management System *
* ---------------------------------------------------------------- *
* *
* File: upload_definitions.php *
* Copyright: (C) 2002 Jan Sorgalla *
* Email: jan@4homepages.de *
* Web: http://www.4homepages.de *
* Scriptversion: 1.7.2 *
* *
* Never released without support from: Nicky (http://www.nicky.net) *
* *
**************************************************************************
* *
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- *
* bedingungen (Lizenz.txt) für weitere Informationen. *
* --------------------------------------------------------------- *
* This script is NOT freeware! Please read the Copyright Notice *
* (Licence.txt) for further information. *
* *
*************************************************************************/
if (!defined('ROOT_PATH')) {
die("Security violation");
}
$mime_type_match['jpg'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jpeg'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['gif'] = array("image/gif");
$mime_type_match['png'] = array("image/png", "image/x-png");
$mime_type_match['tif'] = array("image/tiff", "application/octet-stream");
$mime_type_match['tiff'] = array("image/tiff", "application/octet-stream");
$mime_type_match['bmp'] = array("image/bmp", "image/x-ms-bmp");
$mime_type_match['aif'] = array("audio/x-aiff");
$mime_type_match['aiff'] = array("audio/x-aiff");
$mime_type_match['au'] = array("audio/basic");
$mime_type_match['snd'] = array("audio/basic");
$mime_type_match['mid'] = array("audio/x-midi", "audio/mid", "audio/midi");
$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg");
$mime_type_match['ra'] = array("audio/x-pn-realaudio");
$mime_type_match['ram'] = array("audio/x-pn-realaudio");
$mime_type_match['rm'] = array("audio/vnd.rn-realmedia", "application/vnd.rn-realmedia", "video/vnd.rn-realvideo", "application/vnd");
$mime_type_match['rpm'] = array("audio/x-pn-realaudio-plugin");
$mime_type_match['wav'] = array("audio/x-wav");
$mime_type_match['avi'] = array("video/x-msvideo", "video/avi");
$mime_type_match['mpg'] = array("video/mpeg");
$mime_type_match['mpeg'] = array("video/mpeg");
$mime_type_match['mpe'] = array("video/mpeg");
$mime_type_match['mov'] = array("video/quicktime");
$mime_type_match['qt'] = array("video/quicktime");
$mime_type_match['swf'] = array("application/x-shockwave-flash");
$mime_type_match['psd'] = array("application/octet-stream");
$mime_type_match['fla'] = array("application/octet-stream");
$mime_type_match['gz'] = array("application/gzip", "application/x-gzip-compressed");
$mime_type_match['rar'] = array("application/x-rar-compressed");
$mime_type_match['tar'] = array("application/x-tar");
$mime_type_match['gtar'] = array("application/x-gtar");
$mime_type_match['zip'] = array("application/zip", "application/x-zip-compressed");
$mime_type_match['sit'] = array("application/x-stuffit");
$mime_type_match['pdf'] = array("application/pdf", "application/x-pdf");
$mime_type_match['ai'] = array("application/postscript");
$mime_type_match['eps'] = array("application/postscript");
$mime_type_match['ps'] = array("application/postscript");
$mime_type_match['txt'] = array("text/plain", "text/richtext", "text/rtf", "text/html");
$mime_type_match['rtf'] = array("text/plain", "text/richtext", "text/rtf");
$mime_type_match['rtx'] = array("text/plain", "text/richtext", "text/rtf");
$mime_type_match['doc'] = array("application/msword");
$mime_type_match['xls'] = array("application/vnd", "application/x-m***cel");
$mime_type_match['ppt'] = array("application/vnd");
$mime_type_match['csv'] = array("text/comma-separated-values");
$mime_type_match['js'] = array("text/javascript");
$mime_type_match['css'] = array("text/css");
$mime_type_match['mp4'] = array("video/mp");
$mime_type_match['3gp'] = array("");
$mime_type_match['mp4'] = array("video/mp");
$mime_type_match['3gp'] = array("");
$mime_type_match['bmp'] = array("image/bmp");
$mime_type_match['wmv'] = array("video/x-ms-wmv", "application/x-unknown")
?>
when i try to view a rm file i only see 404.gif
i uploaded the files and inserted them to DB
help me plz
-
Hello;
you seem to use an old script.
Be sure to have a new file called rm.gif in templates/your_template/icons/, as shown in attached image.
-
my problem not about rm.gif
the rm extension doesnt work
-
Fixed
there was space between the words
example
i love 4iamges.rm
regards
-
... thats all ... now you can present wmv-files in your 4images gallery ... 8)
That works great, thanks. Can you tell he how I can prevent the movie to be played (in other words, only when my users download it, they can see it)?
I just had 47 persons looking that movie and I nearly got a php/Apache server hickup...
thanks,
Jos
-
@joombler
... edit your wmv.html ... delete the code for media player ... and use only e.g. {thumbnail} ... :)
-
Hi guys,
I red the forum few times but still can not figure it out. My problem is with 3gp files. I have added the new mime as well as new template and new icon. For a while it worked fine (first day) and then it is shows me message “choose an image”.
Here is my template
<!-- Template file for 3GPP Files --><OBJECT id=JavaPlug0 height=280 width=300 classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>
<PARAM NAME="SRC" VALUE="{media_src}"><PARAM NAME="CONTROLS" VALUE="ImageWindow,ControlPanel">
<param name="_ExtentX" value="7938">
<param name="_ExtentY" value="7408">
<param name="AUTOSTART" value="1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</BODY><!--webbot bot="HTMLMarkup" endspan --></HTML></OBJECT>
and this is my new mime
$mime_type_match['3gp'] = array("video/quicktime",""," ");
The file I am trying to upload is 950KB so I do not think the problem is in php.ini . Do you have any idea what is wrong?
Thx to everybody
-
Hi,
- also added "egp" in ACP?
- have you test:
$mime_type_match['3gp'] = array("video/quicktime");
- and what is the reason about this code in your media template:
</BODY><!--webbot bot="HTMLMarkup" endspan --></HTML>
cu
Kurt
-
- and what is the reason about this code in your media template:
</BODY><!--webbot bot="HTMLMarkup" endspan --></HTML>
That is usually a Microsoft FrontPage thing.
@ popeslav
If you are using Frontpage to edit your files you should really reconsider as Frontpage will mess up some code.
I suggest getting a basic HTML editor for editing your HTML files.
-
Hi! I've a problem with "exe" extention =(
What I did:
1) $mime_type_match['exe'] = array("application/octet-stream"); - I found this mime type in my hosting control panel
2) created a template exe.html
3) added in the acp "exe"
strange happens: the member.php with upload part just reloads without writing any errors
how to fix that?
-
I fixed it myself =)
after http://www.4homepages.de/forum/index.php?topic=15253.0
I changed
$mime_type_match['exe'] = array("application/octet-stream");
to
$mime_type_match['exe'] = array("application/octet-stream", "application/x-msdownload");
thnx to myself and everybody else!
-
hi guyzz
i need to add this extensions work with 1.7.4
ra
rm
ram
3gp
txt
pps
wmv
avi(dvix)
mp4
-
... wmv -> http://www.4homepages.de/forum/index.php?topic=7277.msg56938#msg56938 ...
... txt -> http://www.4homepages.de/forum/index.php?topic=18237.0
... for other extensions use it similar ...
-
can you explain to me exactly what work
i have 1.7.4 8)
-
@ m3tallica and all other wmv-friends,
WMV as new valid file extension
1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions
2. for wmv-files add the following code line into your includes/upload_definitions.php
$mime_type_match['wmv'] = array("video/x-ms-wmv");
or this (update ...)
$mime_type_match['wmv'] = array("video/x-ms-wmv", "application/x-unknown");
3. create a new wmv.html in templates/<your_template>/media/ like this
<!-- Template file for WMV Movies -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
</embed>
<br>
4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this
(http://img458.imageshack.us/img458/2646/wmv2ym.gif)
... thats all ... now you can present wmv-files in your 4images gallery ... 8)
mawenzi
Pancake it is necessary a file to be loaded all has made correctly
-
Hi. Firstly, 4images rocks!
Ok, here's my problem. I can upload mp3 files no problem, but I can't get them to play! I've tried in my (customised) template, as well as the default template which I haven't altered.
includes/upload_definitions.php contains the following: $mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg");
There are two version of mp3.html, one in the default template, the other in my customised 4dark template:
<!-- Template file for MP3 Audio Files -->
<!--<embed src="{media_src}" type="audio/x-mpeg" hidden="true" autostart="true" loop="true" height="1" width="1"></embed> -->
{media_icon}<br />
and
<!-- Template file for MP3 Audio Files -->
<OBJECT
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName" VALUE="{media_src}">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="autoSize" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="loop" VALUE="true">
</OBJECT>
<br>
<br>
I have tried both, it doesn't make any difference. I can download the mp3 file, but I can't play it from within the 4images GUI.
Any help on this would be appreciated.
Thanks in advance,
Ali.
P.s. I might try the flash player mod: http://www.4homepages.de/forum/index.php?topic=17665.0 (http://www.4homepages.de/forum/index.php?topic=17665.0) but I'd still like to know why this doesn't work.
-
Hello and welcome to 4images forum.
It probably depends on which browser you are testing it in.
The first template code you showed wouldn't work in any browsers, because the <embed></embed> is commented out
The second code works in IE
This should work in all browsers:
<!-- Template file for MP3 Audio Files -->
<OBJECT
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName" VALUE="{media_src}">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="autoSize" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="loop" VALUE="true">
</OBJECT>
<embed src="{media_src}" type="audio/x-mpeg" hidden="true" autostart="true" loop="true" height="1" width="1"></embed>
-
Hia V@no and thanks for your reply. :D
I use Firefox. The new code you've given works fine, many thanks :D :D
And yes, the embed tags are commented out. I hadn't noticed :oops: :oops: I'm tired!
Ali.
-
... the extension for GPX-Files (GPS Exchange Format) as track in Google Maps ...
... here : http://www.4homepages.de/forum/index.php?topic=19864.0 ...
... thanks Erik ...
-
I wanna add jar files plz help me out
-
http://www.4homepages.de/forum/index.php?topic=7277.msg32249#msg32249
-
http://www.4homepages.de/forum/index.php?topic=7277.msg32249#msg32249
plz teach me step by step i am not getting from there :(
-
plz teach me step by step i am not getting from there :(
How about this, you put back the 4images copyright notice back to your gallery or buy 4images Copyright-Removal-License (http://www.4homepages.de/4images/order.php#english), then we'll talk. Otherwise if you disrespect 4images license (http://www.4homepages.de/4images/license.php#english), don't expect much of a help here.
-
plz teach me step by step i am not getting from there :(
How about this, you put back the 4images copyright notice back to your gallery or buy 4images Copyright-Removal-License (http://www.4homepages.de/4images/order.php#english), then we'll talk. Otherwise if you disrespect 4images license (http://www.4homepages.de/4images/license.php#english), don't expect much of a help here.
ok help me now
-
I have in wmv.html:
<!-- Template file for WMV Movies -->
<object ID="Player" width="550" height="450" CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject">
<param name="autoStart" value="True">
<param name="fileName" value="{media_src}">
<embed type="application/x-mplayer2" ID="Player" width="550" height="450" pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp" autostart="1" src="{media_src}">
</embed>
</object>
<br>
Everything is fine on Internet Explorer, but on Mozilla Firefox the height of the video is smaller. Anyone know why?
-
In my experience with FF and WMP extension I found that its total B.S. The video size depends on what kind of WMP is installed on the system, what kind of WMP plugin is installed and as surprising it might sound, where the plugin is installed to. When I had all WMP plugin's files inside FF/plugins folder the video showed with correct aspect ratio, but with wrong size and most of the time WMP controls were out of reach, when plugin's files are inside WMP directory, then WMP controls showed fine, but video aspect ratio was all messed up. Finally, I said "screw this" and installed IE Tab extension and using IE engine when a page requires WMP plugin.
-
So, habe jetzt überall da, wo ich es hinzufügen sollte etwas hinzugefügt. Nur iwie klappt es immernoch nicht. Auch in dem Templatefiles habe ich ein jar.html erstellt. 8O
Wie auch schon vorhin:
Fehler beim Upload der Bild-Datei:
kdplayer09_r6ltvwyf.jar: Die Datei hat ein ungültiges Format (jar, application/java)