H5P Guides
Allowed File Extensions
This page contains the default whitelist over which file extensions that may be included in a H5P package.
Files that require server side execution, or files that cannot be regarded as open standard should not be included.
- bmp
- css
- csv
- diff
- doc
- docx
- eof
- gif
- jpeg
- jpg
- js
- json
- mp3
- mp4 (video: H.264, audio: AAC/MP3)
- m4a (audio: AAC)
- odp
- ods
- odt
- ogg (video: Theora, audio: Vorbis)
- otf
- patch
- png
- ppt
- pptx
- rtf
- svg
- swf
- textile
- tif
- tiff
- ttf
- txt
- wav (audio: PCM)
- webm (video VP8, audio: Vorbis)
- woff
- xls
- xlsx
- xml
- md
- textile
- vtt
Administrators of websites implementing H5P may open for accepting additional formats. HTML files should not be used. The HTML for each library should be inserted by the library to ease code reuse, and avoid content being defined in the HTML.
Comments
arcadefire
Sun, 06/05/2022 - 00:15
Permalink
Where do you find in
Where do you find in wordpress as Administrator at setting --> H5P --> whitelist of accepted files?
I do not find this option for accepting additional formats.
icc
Wed, 06/08/2022 - 10:30
Permalink
Unfortunately, this isn't
Unfortunately, this isn't supported in the WordPress plugin, yet. In the meantime you would have to manually modify the list in the code here: https://github.com/h5p/h5p-wordpress-plugin/blob/d9072b6d1b1f40b5b37e9f57e6248ea6851346d9/public/class-h5p-wordpress.php#L501
arcadefire
Sun, 06/12/2022 - 21:43
Permalink
Thank you!But I don't see
Thank you!
But I don't see here where I could add file types to a list in https://github.com/h5p/h5p-wordpress-plugin/blob/d9072b6d1b1f40b5b37e9f57e6248ea6851346d9/public/class-h5p-wordpress.php#L501.