====== MIME configuratie ====== Welke bestandtypes je kunt uploaden via de [[media manager|mediabeheerder]] wordt ingesteld via bestand ''conf/mime.conf''. Het stelt ook de bestandextensie <-> mimetype-associatie in. Om veiligheidsredenen is het niet mogelijk om in [[DokuWiki]] alle soorten bestanden toe te laten. :!: **Sta nooit het uploaden van HTML-bestanden toe in niet-beschermde wiki's**, want dit maakt Cross Site Scripting kwetsbaarheden mogelijk via JavaScript. Schakel dit alleen in met betrouwbare gebruikers. Het is nodig om de [[config:iexssprotect]]-optie uit te schakelen in aanvulling op het toevoegen van het HTML mimetype in het configuratiebestand. Extra iconen in vergelijkbare stijl zijn beschikbaar op http://www.splitbrain.org/projects/file_icons Je kunt elke bestandextensie vinden met zijn mimetype op http://filext.com/ ===== Extra Mimetypes toevoegen ===== Extra mimetypes moeten in ''mime.local.conf'' (je moet dit bestand zelf aanmaken). Het bestand verwacht een extensie (zonder punt) en een mimetype. Een uitroepteken(!) voor het mimetype dwingt de browser een downloaddialoog te geven, zelfs als in de browser een plugin beschikbaar is die het bestand kan weergeven. Voorbeeld: # dit kan worden afgespeeld in de browser (als die het ondersteund): wav audio/wav # dit wordt gedownload wav !audio/wav Bestandtypeiconen kunnen worden toegevoegd door een afbeelding (PNG of GIF)((Iconen moeten 16x16 zijn.)) vernoemd naar de bestandextensie in ''lib/images/fileicons/''. Opmerking: omdat de stylesheet die gebruikt wordt voor het toekennen van bestandsiconen [[caching|gecached]] wordt moet je die laten verversen door een configuratiebestand te bewerken of tijdmarkering te updaten met touch((//touch// is een UNIX commando dat de datum en tijd, de zogenaamde "timestamp", van een bestand wijzigt.)). ===== Standaard Mimetypes ===== De standaardinstallatie bevat de volgende instellingen: ^Extension^Mime type ^ Icon ^ |jpg |image/jpeg | {{http://www.dokuwiki.org/lib/images/fileicons/jpg.png?nolink&nocache}} | |jpeg |image/jpeg | {{http://www.dokuwiki.org/lib/images/fileicons/jpeg.png?nolink&nocache}} | |gif |image/gif | {{http://www.dokuwiki.org/lib/images/fileicons/gif.png?nolink&nocache}} | |png |image/png | {{http://www.dokuwiki.org/lib/images/fileicons/png.png?nolink&nocache}} | |swf |application/x-shockwave-flash| {{http://www.dokuwiki.org/lib/images/fileicons/swf.png?nolink&nocache}} | |mp3 |audio/mpeg | {{http://www.dokuwiki.org/lib/images/fileicons/mp3.png?nolink&nocache}} | |ogg |audio/ogg | {{http://www.dokuwiki.org/lib/images/fileicons/ogg.png?nolink&nocache}} | |wav |audio/wav | {{http://www.dokuwiki.org/lib/images/fileicons/wav.png?nolink&nocache}} | |tgz |!application/octet-stream | {{http://www.dokuwiki.org/lib/images/fileicons/tgz.png?nolink&nocache}} | |tar |!application/x-gtar | {{http://www.dokuwiki.org/lib/images/fileicons/tar.png?nolink&nocache}} | |gz |!application/octet-stream | {{http://www.dokuwiki.org/lib/images/fileicons/gz.png?nolink&nocache}} | |bz2 |!application/octet-stream | {{http://www.dokuwiki.org/lib/images/fileicons/bz2.png?nolink&nocache}} | |zip |!application/zip | {{http://www.dokuwiki.org/lib/images/fileicons/zip.png?nolink&nocache}} | |rar |!application/rar | {{http://www.dokuwiki.org/lib/images/fileicons/rar.png?nolink&nocache}} | |7z |!application/x-7z-compressed | {{http://www.dokuwiki.org/lib/images/fileicons/7z.png?nolink&nocache}} | |pdf |application/pdf | {{http://www.dokuwiki.org/lib/images/fileicons/pdf.png?nolink&nocache}} | |ps |!application/postscript | {{http://www.dokuwiki.org/lib/images/fileicons/ps.png?nolink&nocache}} | |rpm |!application/octet-stream | {{http://www.dokuwiki.org/lib/images/fileicons/rpm.png?nolink&nocache}} | |deb |!application/octet-stream | {{http://www.dokuwiki.org/lib/images/fileicons/deb.png?nolink&nocache}} | |doc |!application/msword | {{http://www.dokuwiki.org/lib/images/fileicons/doc.png?nolink&nocache}} | |xls |!application/msexcel | {{http://www.dokuwiki.org/lib/images/fileicons/xls.png?nolink&nocache}} | |ppt |!application/mspowerpoint | {{http://www.dokuwiki.org/lib/images/fileicons/ppt.png?nolink&nocache}} | |rtf |!application/msword | {{http://www.dokuwiki.org/lib/images/fileicons/rtf.png?nolink&nocache}} | |docx |!application/vnd.openxmlformats-officedocument.wordprocessingml.document | {{http://www.dokuwiki.org/lib/images/fileicons/docx.png?nolink&nocache}} | |xlsx |!application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | {{http://www.dokuwiki.org/lib/images/fileicons/xlsx.png?nolink&nocache}} | |pptx |!application/vnd.openxmlformats-officedocument.presentationml.presentation | {{http://www.dokuwiki.org/lib/images/fileicons/pptx.png?nolink&nocache}} | |sxw |!application/soffice | {{http://www.dokuwiki.org/lib/images/fileicons/sxw.png?nolink&nocache}} | |sxc |!application/soffice | {{http://www.dokuwiki.org/lib/images/fileicons/sxc.png?nolink&nocache}} | |sxi |!application/soffice | {{http://www.dokuwiki.org/lib/images/fileicons/sxi.png?nolink&nocache}} | |sxd |!application/soffice | {{http://www.dokuwiki.org/lib/images/fileicons/sxd.png?nolink&nocache}} | |odc |!application/vnd.oasis.opendocument.chart | {{http://www.dokuwiki.org/lib/images/fileicons/odc.png?nolink&nocache}} | |odf |!application/vnd.oasis.opendocument.formula | {{http://www.dokuwiki.org/lib/images/fileicons/odf.png?nolink&nocache}} | |odg |!application/vnd.oasis.opendocument.graphics | {{http://www.dokuwiki.org/lib/images/fileicons/odg.png?nolink&nocache}} | |odi |!application/vnd.oasis.opendocument.image | {{http://www.dokuwiki.org/lib/images/fileicons/odi.png?nolink&nocache}} | |odp |!application/vnd.oasis.opendocument.presentation| {{http://www.dokuwiki.org/lib/images/fileicons/odp.png?nolink&nocache}}| |ods |!application/vnd.oasis.opendocument.spreadsheet | {{http://www.dokuwiki.org/lib/images/fileicons/ods.png?nolink&nocache}}| |odt |!application/vnd.oasis.opendocument.text | {{http://www.dokuwiki.org/lib/images/fileicons/odt.png?nolink&nocache}} | De volgende tekstsoorten worden standaard uitgeschakeld door het te markeren als commentaar, omdat van spammers bekend is dat zij dit soort tekstbestanden proberen te uploaden naar niet beschermde wiki's. |html |text/html | {{http://www.dokuwiki.org/lib/images/fileicons/html.png?nolink&nocache}} | |htm |text/html | {{http://www.dokuwiki.org/lib/images/fileicons/html.png?nolink&nocache}} | |txt |text/plain | {{http://www.dokuwiki.org/lib/images/fileicons/txt.png?nolink&nocache}} | |conf |text/plain | {{http://www.dokuwiki.org/lib/images/fileicons/conf.png?nolink&nocache}} | |xml |text/xml | {{http://www.dokuwiki.org/lib/images/fileicons/xml.png?nolink&nocache}} | |csv |text/csv | {{http://www.dokuwiki.org/lib/images/fileicons/csv.png?nolink&nocache}} |