SPIP recognises a certain number of file formats in its DOCUMENTS loop.
SPIP’s response when it does not recognise a file extension is to ZIP the file up for security reasons. For example, this can eliminate a PHP script file being executed after it has been added to the attached documents (of an article or a section).
If you would like to add an additional file format, for example, perhaps a PowerPoint (pps) file type, you will need to add that format to the spip_types_documents table in your database using a direct method like phpMyAdmin [1].
To understand the various MIME TYPEs, please refer to the following article on wikipedia Internet media type.
Here is the complete list of extensions/formats recognised by SPIP:
| Title | Extension | Mime_type | Thumbnail | 
|---|---|---|---|
| JPEG | jpg | image/jpeg | |
| PNG | png | image/png | |
| GIF | gif | image/gif | |
| BMP | bmp | image/x-ms-bmp | |
| Photoshop | psd | image/x-photoshop | |
| TIFF | tif | image/tiff | |
| AIFF | aiff | audio/x-aiff | |
| Windows Media | asf | video/x-ms-asf | |
| AVI | avi | video/x-msvideo | |
| BZip | bz2 | application/x-bzip2 | |
| Word | doc | application/msword | |
| DjVu | djvu | image/vnd.djvu | |
| PostScript | eps | application/postscript | |
| GZ | gz | application/x-gzip | |
| HTML | html | text/html | |
| Midi | mid | audio/midi | |
| QuickTime | mov | video/quicktime | |
| MP3 | mp3 | audio/mpeg | |
| MPEG | mpg | video/mpeg | |
| Ogg Vorbis | ogg | audio/ogg | |
| application/pdf | |||
| PowerPoint | ppt | application/vnd.ms-powerpoint | |
| PostScript | ps | application/postscript | |
| QuickTime | qt | video/quicktime | |
| RealAudio | ra | audio/x-pn-realaudio | |
| RealAudio | ram | audio/x-pn-realaudio | |
| RealAudio | rm | audio/x-pn-realaudio | |
| RTF | rtf | application/rtf | |
| StarOffice Presentation | sdd | application/vnd.stardivision.impress | |
| StarOffice Writer document | sdw | application/vnd.stardivision.writer | |
| Stuffit | sit | application/x-stuffit | |
| OpenOffice.org Impress | sxi | application/vnd.sun.xml.impress | |
| OpenOffice.org | sxw | application/vnd.sun.xml.writer | |
| Flash | swf | application/x-shockwave-flash | |
| TGZ | tgz | application/x-gtar | |
| Texte | txt | text/plain | |
| WAV | wav | audio/x-wav | |
| Excel | xls | application/vnd.ms-excel | |
| XML | xml | application/xml | |
| Windows Media Video | wmv | video/x-ms-wmv | |
| Zip | zip | application/zip | |
| MNG | mng | video/x-mng | |
| Adobe Illustrator | ai | application/illustrator | |
| C source | c | text/x-csrc | |
| Debian | deb | application/x-debian-package | |
| LaTeX DVI | dvi | application/x-dvi | |
| C header | h | text/x-chdr | |
| Pascal | pas | text/x-pascal | |
| RedHat/Mandrake/SuSE | rpm | application/x-redhat-package-manager | |
| OpenOffice.org Calc | sxc | application/vnd.sun.xml.calc | |
| LaTeX | tex | text/x-tex | |
| GIMP multi-layer | xcf | application/x-xcf | |
| Cascading Style Sheet | css | text/css | |
| Portable Game Notation | pgn | application/x-chess-pgn | |
| Binary Data | bin | application/octet-stream | |
| BitTorrent | torrent | application/x-bittorrent | |
| SVG | svg | image/svg+xml | |
| Flash Video | flv | video/x-flv | |
| Abiword | abw | application/abiword | |
| Blender | blend | application/x-blender | |
| TTF Font | ttf | application/x-font-ttf | |
| OpenDocument Text | odt | application/vnd.oasis.opendocument.text | |
| OpenDocument Spreadsheet | ods | application/vnd.oasis.opendocument.spreadsheet | |
| OpenDocument Presentation | odp | application/vnd.oasis.opendocument.presentation | |
| OpenDocument Graphics | odg | application/vnd.oasis.opendocument.graphics | |
| OpenDocument Chart | odc | application/vnd.oasis.opendocument.chart | |
| OpenDocument Formula | odf | application/vnd.oasis.opendocument.formula | |
| OpenDocument Database | odb | application/vnd.oasis.opendocument.database | |
| OpenDocument Image | odi | application/vnd.oasis.opendocument.image | |
| OpenDocument Text-master | odm | application/vnd.oasis.opendocument.text-master | |
| OpenDocument Text-template | ott | application/vnd.oasis.opendocument.text-template | |
| OpenDocument Spreadsheet-template | ots | application/vnd.oasis.opendocument.spreadsheet-template | |
| OpenDocument Presentation-template | otp | application/vnd.oasis.opendocument.presentation-template | |
| OpenDocument Graphics-template | otg | application/vnd.oasis.opendocument.graphics-template | |
| MPEG4 | mp4 | application/mp4 | |
| Matroska Video | mkv | video/mkv | |
| Comma Separated Values | csv | text/csv | |
| Keyhole Markup Language | kml | application/vnd.google-earth.kml+xml | |
| Google Earth Placemark File | kmz | application/vnd.google-earth.kmz | |
| 3rd Generation Partnership Project | 3gp | video/3gpp | |
| Matroska Audio | mka | audio/mka | |
| LaTeX Class | cls | text/x-tex | |
| LaTeX Style Sheet | sty | text/x-tex | |
| Free Lossless Audio Codec | flac | audio/x-flac | |
| Annodex | anx | application/annodex | |
| Annodex Audio | axa | audio/annodex | |
| Annodex Video | axv | video/annodex | |
| Ogg Audio | oga | audio/ogg | |
| Ogg Video | ogv | video/ogg | |
| Ogg Multiplex | ogx | application/ogg | |
| Ogg Speex | spx | audio/ogg | |
| XSPF | xspf | application/xspf+xml | |
| Digital Video | dv | video/x-dv | |
| MPEG4 Audio | m4a | audio/mp4a-latm | |
| MPEG4 Audio | m4b | audio/mp4a-latm | |
| MPEG4 Audio | m4p | audio/mp4a-latm | |
| MPEG4 Playlist | m4u | video/vnd.mpegurl | |
| MPEG4 Video | m4v | video/x-m4v | |
| Word | docm | application/vnd.ms-word.document.macroEnabled.12 | |
| Word | docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | |
| Word template | dotm | application/vnd.ms-word.template.macroEnabled.12 | |
| Word template | dotx | application/vnd.openxmlformats-officedocument.wordprocessingml.template | |
| Powerpoint template | potm | application/vnd.ms-powerpoint.template.macroEnabled.12 | |
| Powerpoint template | potx | application/vnd.openxmlformats-officedocument.presentationml.template | |
| Powerpoint addin | ppam | application/vnd.ms-powerpoint.addin.macroEnabled.12 | |
| Powerpoint slideshow | ppsm | application/vnd.ms-powerpoint.slideshow.macroEnabled.12 | |
| Powerpoint slideshow | ppsx | application/vnd.openxmlformats-officedocument.presentationml.slideshow | |
| Powerpoint | pptm | application/vnd.ms-powerpoint.presentation.macroEnabled.12 | |
| Powerpoint | pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | |
| Excel | xlam | application/vnd.ms-excel.addin.macroEnabled.12 | |
| Excel binary | xlsb | application/vnd.ms-excel.sheet.binary.macroEnabled.12 | |
| Excel | xlsm | application/vnd.ms-excel.sheet.macroEnabled.12 | |
| Excel | xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | |
| Excel template | xltm | application/vnd.ms-excel.template.macroEnabled.12 | |
| Excel template | xltx | application/vnd.openxmlformats-officedocument.spreadsheetml.template | |
| Audio for Adobe Flash Player | f4a | audio/mp4 | |
| Audio Book for Adobe Flash Player | f4b | audio/mp4 | |
| Protected Video for Adobe Flash Player | f4p | video/mp4 | |
| Video for Adobe Flash Player | f4v | video/mp4 | |
| Musepack | mpc | audio/x-musepack | |
| WebM | webm | video/webm | |
| Advanced Audio Coding | aac | audio/mp4a-latm | |
| AC-3 Compressed Audio | ac3 | audio/x-aac | |
| Compressed AIFF Audio | aifc | audio/x-aifc | |
| Adaptive Multi-Rate Audio | amr | audio/amr | |
| Monkey’s Audio File | ape | audio/x-monkeys-audio | |
| MPEG-PS | m2p | video/MP2P | |
| BDAV MPEG-2 Transport Stream | m2ts | video/MP2T | |
| iPhone Ringtone | m4r | audio/aac | |
| AVCHD MPEG-2 transport stream | mts | video/MP2T | |
| Compressed Scalable Vector Graphic | svgz | image/svg+xml | |
| MPEG transport stream | ts | video/MP2T | |
| Windows Media Audio | wma | audio/x-ms-wma | |
| 3GP Audio File | 3ga | audio/3ga | |
| 7 Zip | 7z | application/x-7z-compressed | |
| Advanced Stream Redirector | asx | video/x-ms-asf | |
| BibTeX | bib | application/x-bibtex | |
| Citation Style Language | csl | application/xml | |
| Word Template | dot | application/msword | |
| Enhanced Metafile | emf | image/x-emf | |
| EndNote Library | enl | application/octet-stream | |
| EndNote Style | ens | application/octet-stream | |
| EPUB | epub | application/epub+zip | |
| GPS eXchange Format | gpx | application/gpx+xml | |
| Java Archive | jar | application/java-archive | |
| M3U Playlist | m3u | text/plain | |
| M3U8 Playlist | m3u8 | text/plain | |
| MathML | mathml | application/mathml+xml | |
| Playlist | pls | text/plain | |
| PowerPoint Template | pot | application/vnd.ms-powerpoint | |
| WinRAR | rar | application/x-rar-compressed | |
| Resource Description Framework | rdf | application/rdf+xml | |
| RIS | ris | application/x-research-info-systems | |
| StarOffice Spreadsheet | sdc | application/vnd.stardivision.calc | |
| Scribus | sla | application/x-scribus | |
| SubRip Subtitle | srt | text/plain | |
| SubStation Alpha Subtitle | ssa | text/plain | |
| Universal Subtitle Format | usf | application/xml | |
| Excel Template | xlt | application/vnd.ms-excel | |
| Windows Metafile | wmf | image/x-emf | |
| Windows Media Player Playlist | wpl | application/vnd.ms-wpl | |
| YAML | yaml | text/yaml | |
| YUV4MPEG2 | y4m | video/x-raw-yuv | |
| Lyx file | lyx | application/x-lyx | |
| MBTiles | mbtiles | application/x-sqlite3 | |
| Tar | tar | application/x-tar | |
| JSON | json | application/json | |
| iCalendar | ics | text/calendar | |
| Markdown Document | md | text/x-markdown | |
| vCard | vcf | text/vcard | |
| WebVTT | vtt | text/vtt | |
| WEBP | webp | image/webp | |
| GeoJSON | geojson | application/json |