Overview
By default, in Jive only content defined in the jive.statics.whitelist
property can be uploaded.
The upload using various tools, for example the static content upload plugin, may fail with the error "File Content is Invalid".
In addition, the property jive.statics.whitelist.admin.override
can be used in order to reserve some of the file types only for administrative users.
Resolution
By default, the two properties have the following values:
jive.statics.whitelist | image/gif, image/jpeg, image/png, image/bmp, text/css, text/javascript, text/plain, text/html |
jive.statics.whitelist.admin.override |
You can add mime types to the first property in order for these files to be available.
Anything that will be added also to the second property will be available only to admin.
Please note that the second property is an override - so you need the corresponding mime types to be added to both properties in case you want something to be available for admins only.
Choosing the right mime types
Beware that not all mime types are "universal", and different naming and syntax can be found especially for the least used types.
Warning: the font-related mime types were added recently, and are available only in cloud versions newer than 3000.8 (fixes JVCLD-47473 and JVCLD-48165).
application/x-font-ttf ttf
application/x-font-woff woff
application/x-font-woff2 woff2
The full list of mime types recognized by Jive can be found in the following list:
# MIME type Extension (adapted from Apache)
application/andrew-inset ez
application/iges igs iges
application/acad dwg
application/dxf dxf
application/mdb mdb
application/ptc prt
application/dwf dwf
application/java-archive jar war ear
application/mac-binhex40 hqx
application/mac-compactpro cpt
application/msword doc
application/octet-stream bin dms lha lzh exe class so dll accdb
application/oda oda
application/pdf pdf
application/postscript ai eps ps
application/rtf rtf
application/set set
application/smil smi smil
application/tajima dst
application/vnd.lotus-wordpro lwp
application/vnd.mif mif
application/vnd.ms-excel xls
application/vnd.ms-outlook oft
application/vnd.ms-powerpoint ppt
application/vnd.ms-powerpoint pps
application/vnd.ms-project mpp
application/vnd.oasis.opendocument.chart odc
application/vnd.oasis.opendocument.formula odf
application/vnd.oasis.opendocument.graphics odg
application/vnd.oasis.opendocument.image odi
application/vnd.oasis.opendocument.presentation odp
application/vnd.oasis.opendocument.spreadsheet ods
application/vnd.oasis.opendocument.text odt
application/vnd.wap.wbxml wbxml
application/vnd.wap.wmlc wmlc
application/vnd.wap.wmlscriptc wmlsc
application/vnd.wordperfect wpd
application/x-bcpio bcpio
application/x-bzip2 bz2
application/x-cdlink vcd
application/x-chess-pgn pgn
application/x-cpio cpio
application/x-csh csh
application/x-csv csv
application/x-director dcr dir dxr
application/x-dvi dvi
application/x-envoy evy
application/x-futuresplash spl
application/x-gtar gtar
application/x-gzip gz tgz
application/x-hdf hdf
application/x-javascript js
application/x-kword kwd kwt
application/x-kspread ksp
application/x-kpresenter kpr kpt
application/x-kchart chrt
application/x-killustrator kil
application/x-koan skp skd skt skm
application/x-latex latex
application/x-lisp lsp
application/x-netcdf nc cdf
application/x-ogg ogg
application/x-rpm rpm
application/x-sh sh
application/x-shar shar
application/x-shockwave-flash swf
application/x-stuffit sit
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texinfo texi
application/x-troff t tr roff
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms ms
application/x-ustar ustar
application/x-vrml vrml
application/x-wais-source src
application/xhtml+xml xhtml xht
application/zip zip
audio/basic au snd
audio/midi mid midi kar
audio/mpeg mpga mp2 mp3
audio/mp4 m4a mp4
audio/x-aiff aif aiff aifc
audio/x-mpegurl m3u
audio/x-pn-realaudio ram rm
audio/x-realaudio ra
audio/x-wav wav
chemical/x-pdb pdb
chemical/x-xyz xyz
image/bmp bmp
image/gif gif GIF
image/ief ief
image/jpeg jpeg jpg jpe JPG
image/png png
image/tga tga
image/tiff tiff tif
image/vnd svf
image/vnd.dwg dwg
image/vnd.djvu djvu djv
image/vnd.svf svf
image/vnd.wap.wbmp wbmp
image/x-cmu-raster ras
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb rgb
image/x-xbitmap xbm
application/x-xpinstall xpi
image/x-xpixmap xpm
image/x-xwindowdump xwd
model/iges igs iges
model/mesh msh mesh silo
model/vrml wrl vrml
text/css css
text/html html htm HTML HTM
text/plain asc txt TXT TEXT
text/richtext rtx
text/rtf rtf
text/sgml sgml sgm
text/tab-separated-values tsv
text/vnd.wap.wml wml
text/vnd.wap.wmlscript wmls
text/x-setext etx
text/x-vcard cvd
text/xml xml xsl
video/mp4 m4v mp4
video/mpeg mpeg mpg mpe
video/quicktime qt mov
video/vnd.mpegurl mxu
video/x-msvideo avi
video/x-sgi-movie movie
x-conference/x-cooltalk ice
# Added by Jive Software
video/x-flv flv
video/x-ms-asf asf asx
video/x-ms-wm wm
video/x-ms-wmv wmv
video/x-ms-wmx wmx
video/x-ms-wvx wvx
application/photoshop psd
application/vnd.ms-word doc
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.ms-word.document.macroenabled.12 docm
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.ms-word.template.macroenabled.12 dotm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.ms-excel.sheet.macroenabled.12 xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
application/vnd.ms-excel.template.macroenabled.12 xltm
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
application/vnd.openxmlformats-officedocument.presentationml.template potx
application/vnd.ms-poerpoint.template.macroenabled.12 potm
application/vnd.visio vsd
application/visio vsd
application/x-visio vsd
application/x-font-ttf ttf
application/x-font-woff woff
application/x-font-woff2 woff2
image/x-icon ico
application/vnd.ms-fontobject eot
image/svg+xml svg
application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
text/calendar ics
text/x-php php
Comments
0 comments
Please sign in to leave a comment.