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
Change the allowed file extensions. You need to use addtional hook for adding new mime types for new extensions you added. https://www.opensource-socialnetwork.org/documentation/view/5561/file-mime-types
~~~
<?php
function my_component_init(){
ossn_add_hook('file', 'allowed:extensions', 'my_component_hook');
}
function my_component_hook($hook, $type, $types){
$types[] = 'rar';
$types[] = 'exe';
$types[] = 'dll';
return $types;
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~
File allowed extensions
Change the allowed file extensions. You need to use addtional hook for adding new mime types for new extensions you added. https://www.opensource-socialnetwork.org/documentation/view/5561/file-mime-types ~~~ <?php function my_component_init(){ ossn_add_hook('file', 'allowed:extensions', 'my_component_hook'); } function my_component_hook($hook, $type, $types){ $types[] = 'rar'; $types[] = 'exe'; $types[] = 'dll'; return $types; } ossn_register_callback('ossn', 'init', 'my_component_init'); ~~~
Quick Access
Dashboard
File default image resolution
File mime types
File allowed extensions