From 073b31e6f7b40524dfafb51ec4b8c5d80873ee4e Mon Sep 17 00:00:00 2001 From: Coder of Salvation / Leon van Kammen Date: Thu, 12 Mar 2020 11:53:36 +0100 Subject: [PATCH] bugfix of importing .wbin meshes into litefilesystem + launch preview * removed (the unused) `define('VALID_EXTENSIONS')` * added `wbin,dae` to USE_EXTENSION_WHITELIST-define, Otherwise litefilesystem refuses to save '.wbin' files (imported meshes (obj-files), which causes webglstudio to refuse to launch preview. I suspect USE_EXTENSION_WHITELIST was a leftover. --- src/include/config.sample.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/include/config.sample.php b/src/include/config.sample.php index 535834a..5317929 100755 --- a/src/include/config.sample.php +++ b/src/include/config.sample.php @@ -28,10 +28,9 @@ define('PREVIEW_PREFIX','_th_'); //prefix added to the filename to designate a preview of a file define('PREVIEW_SUFIX','.jpg'); //sufix added to the filename of every preview define('USE_EXTENSIONS_WHITELIST',true); //in case you want to accept only some type of files -define('EXTENSIONS_WHITELIST','png,jpg,jpeg,bmp,txt,json,js,css,html,htm,ttf,otf,webm,wav'); +define('EXTENSIONS_WHITELIST','png,jpg,jpeg,bmp,txt,json,js,css,html,htm,ttf,otf,webm,wav,svg,wbin,dae'); define('USE_EXTENSIONS_BLACKLIST',true); //in case you want to ban some type of files define('EXTENSIONS_BLACKLIST','exe,o,dll,php,py,rb,app,apk,bat,cmd,com,inx,ipa,isu,job,lnk,msc,msi,msp,mst,osx,out,paf,pif,reg,run,rgs,sct,shb,shs,u3p,vb,vbe,vbs,ws,wsf'); -define('VALID_EXTENSIONS','png,jpg,jpeg,bmp,txt,json,js,css,html,htm,ttf,otf,wbin,dae'); define('MAX_USERS_PER_UNIT', 1000); define('MAX_UNITS_PER_USER', 10); define('DEFAULT_USER_SPACE', 10 ); //in MBs, (TODO: if 0 no limit) @@ -46,4 +45,4 @@ //used to rename categories by file type $categories_by_type = [ "image/jpeg" => "Image", "image/jpg" => "Image", "image/png" => "Image", "image/webp" => "Image", "audio/wav" => "Audio", "audio/ogg" => "Audio", "audio/mp3" => "Audio" ]; -?> \ No newline at end of file +?>