Toggle navigation
Home
Hosting
Community
Developers
Github
Web Services (API)
Documentation
References
Report Issue
Download
Installer
Virtual Machine Image
Components
Themes
Member Area
Login
Register
Search
Add a new mime types for the files. You need to use this with addtional hook if you adding new types of extensions https://www.opensource-socialnetwork.org/documentation/view/5560/file-allowed-extensions
~~~
<?php
function my_component_init(){
ossn_add_hook('file', 'mimetypes', 'my_component_hook');
}
function my_component_hook($hook, $type, $types){
$types['rar'][] = 'application/x-rar-compressed';
return $types;
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~
File mime types
Add a new mime types for the files. You need to use this with addtional hook if you adding new types of extensions https://www.opensource-socialnetwork.org/documentation/view/5560/file-allowed-extensions ~~~ <?php function my_component_init(){ ossn_add_hook('file', 'mimetypes', 'my_component_hook'); } function my_component_hook($hook, $type, $types){ $types['rar'][] = 'application/x-rar-compressed'; return $types; } ossn_register_callback('ossn', 'init', 'my_component_init'); ~~~
Quick Access
Dashboard
File default image resolution
File mime types
File allowed extensions