php - ResponsiveFileManager9 keeps displaying 'file extension not allowed' error -


<?php if (session_id() == '') session_start();  mb_internal_encoding('utf-8'); mb_http_output('utf-8'); mb_http_input('utf-8'); mb_language('uni'); mb_regex_encoding('utf-8'); ob_start('mb_output_handler'); date_default_timezone_set('europe/london');   define('use_access_keys', false); // true or false    define('debug_error_message', true); // true or false  $config = array(    'base_url' => ((isset($_server['https']) && $_server['https'] && !   in_array(strtolower($_server['https']), array( 'off', 'no' ))) ?   'https' : 'http') . '://' . $_server['http_host'],   'current_path' => '../source/',   'thumbs_base_path' => '../thumbs/',   'ftp_host'         => false, 'ftp_user'         => "user", 'ftp_pass'         => "pass", 'ftp_base_folder'  => "base_folder", 'ftp_base_url'     => "http://site ftp root",  'ftp_thumbs_dir' => '/thumbs/', 'ftp_ssl' => false, 'ftp_port' => 21,  'access_keys' => array(),   'maxsizetotal' => false,   'maxsizeupload' => 2000,   'filefolderpermission' => 0755,    'default_language' => "en_en",   'icon_theme' => "ico",   'image_resizing'                          => false, 'image_resizing_width'                    => 0, 'image_resizing_height'                   => 0, 'image_resizing_mode'                     => 'auto', // same $image_max_mode 'image_resizing_override'                 => false, // if set true can specify bigger images $image_max_width & height otherwise if image_resizing // bigger $image_max_width or height converted values   //****************** // // watermark image //  //watermark url or false 'image_watermark'                          => false, # pre-determined position such as: #           tl = top left, #           t  = top (middle), #           tr = top right, #           l  = left, #           m  = middle, #           r  = right, #           bl = bottom left, #           b  = bottom (middle), #           br = bottom right #           or, co-ordinate position such as: 50x100 'image_watermark_position'                 => 'br', # padding: if using pre-determined position can #         adjust padding edges passing amount #         in pixels. if using co-ordinates, value ignored. 'image_watermark_padding'                 => 0,  //****************** // default layout setting // // 0 => boxes // 1 => detailed list (1 column) // 2 => columns list (multiple columns depending on width of page) // can pass parameters using session var => $_session['rf']["view"]= // //****************** 'default_view'                            => 0,  //set if filename truncated when overflow first row 'ellipsis_title_after_first_row'          => true,  //************************* //permissions configuration //****************** 'delete_files'                            => true, 'create_folders'                          => true, 'delete_folders'                          => true, 'upload_files'                            => true, 'rename_files'                            => true, 'rename_folders'                          => true, 'duplicate_files'                         => true, 'copy_cut_files'                          => true, // copy/cut files 'copy_cut_dirs'                           => true, // copy/cut directories 'chmod_files'                             => true, // change file permissions 'chmod_dirs'                              => true, // change folder permissions 'preview_text_files'                      => true, // eg.: txt, log etc. 'edit_text_files'                         => true, // eg.: txt, log etc. 'create_text_files'                       => true, // create files exts. defined in $editable_text_file_exts  // can preview these type of files if $preview_text_files true 'previewable_text_file_exts'              => array( "bsh", "c","css", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml","xsl" ), 'previewable_text_file_exts_no_prettify'  => array( 'txt', 'log' ),  // can edit these type of files if $edit_text_files true (only text based files) // can create these type of files if $create_text_files true (only text based files) // if want can add html,css etc. // security reasons it's not recommended! 'editable_text_file_exts'                 => array( 'txt', 'log', 'xml', 'html', 'css', 'htm', 'js' ),  // preview google documents 'googledoc_enabled'                       => true, 'googledoc_file_exts'                     => array( 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx' ),  // preview viewer.js 'viewerjs_enabled'                        => true, 'viewerjs_file_exts'                      => array( 'pdf', 'odt', 'odp', 'ods' ),  // defines size limit paste in mb / operation // set 'false' no limit 'copy_cut_max_size'                       => 100, // defines file count limit paste / operation // set 'false' no limit 'copy_cut_max_count'                      => 200, //if of these limits reached, operation won't start , generate warning  //********************** //allowed extensions (lowercase insert) //********************** 'ext_img'                                 => array( 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'svg' ), //images 'ext_file'                                => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm'), //files 'ext_video'                               => array( 'mov', 'mpeg', 'm4v', 'mp4', 'avi', 'mpg', 'wma', "flv", "webm" ), //video 'ext_music'                               => array( 'mp3', 'mpga', 'm4a', 'ac3', 'aiff', 'mid', 'ogg', 'wav' ), //audio 'ext_misc'                                => array( 'zip', 'rar', 'gz', 'tar', 'iso', 'dmg' ), //archives  /****************** * aviary config *******************/ 'aviary_active'                           => true, 'aviary_apikey'                           => "2444282ef4344e3dacdedc7a78f8877d", 'aviary_language'                         => "en", 'aviary_theme'                            => "light", 'aviary_tools'                            => "all", 'aviary_maxsize'                          => "1400", // add or modify aviary options below needed - json encoded when added configuration arrays can utilized needed  //the filter , sorter managed through both javascript , php scripts because if have lot of //file in folder javascript script can't sort or filter all, filemanager switch php script. //the plugin automatic swich javascript php when current folder exceeds below limit of files number 'file_number_limit_js'                    => 500,  //********************** // hidden files , folders //********************** // set names of folders want hidden (eg "hidden_folder1", "hidden_folder2" ) remember folders these names hidden (you can set exceptions in config.php files on folders) 'hidden_folders'                          => array(), // set names of files want hidden. remember these names hidden in folders (eg "this_document.pdf", "that_image.jpg" ) 'hidden_files'                            => array( 'config.php' ),  /******************* * url upload *******************/ 'url_upload'                             => true,  /******************* * java upload *******************/ 'java_upload'                             => true, 'javamaxsizeupload'                       => 200, //gb   //************************************ //thumbnail external use creation //************************************   // new image resized creation fixed path filemanager folder after uploading (thumbnails in fixed mode) // if want create images resized out of upload folder use external script can choose method, // can create more 1 image @ time add value in array // remember image creation respect folder hierarchy if inside source/test/test1/ new image create @ // path_from_filemanager/test/test1/ // ps if there isn't write permission in destination folder must set // 'fixed_image_creation'                    => false, //activate or not creation of 1 or more image resized fixed path filemanager folder 'fixed_path_from_filemanager'             => array( '../test/', '../test1/' ), //fixed path of image folder current position on upload folder 'fixed_image_creation_name_to_prepend'    => array( '', 'test_' ), //name prepend on filename 'fixed_image_creation_to_append'          => array( '_test', '' ), //name appendon filename 'fixed_image_creation_width'              => array( 300, 400 ), //width of image (you can leave empty if set height) 'fixed_image_creation_height'             => array( 200, '' ), //height of image (you can leave empty if set width) /* #             $option:     0 / exact = defined size; #                          1 / portrait = keep aspect set height; #                          2 / landscape = keep aspect set width; #                          3 / auto = auto; #                          4 / crop= resize , crop; */ 'fixed_image_creation_option'             => array( 'crop', 'auto' ), //set type of crop   // new image resized creation relative path inside upload folder after uploading (thumbnails in relative mode) // responsive filemanager can create automatically resized image inside upload folder, more 1 @ time // add value in array // image creation path relative if i'm inside source/test/test1 , upload image, path start here // 'relative_image_creation'                 => false, //activate or not creation of 1 or more image resized relative path upload folder 'relative_path_from_current_pos'          => array( './', './' ), //relative path of image folder current position on upload folder 'relative_image_creation_name_to_prepend' => array( '', '' ), //name prepend on filename 'relative_image_creation_name_to_append'  => array( '_thumb', '_thumb1' ), //name append on filename 'relative_image_creation_width'           => array( 300, 400 ), //width of image (you can leave empty if set height) 'relative_image_creation_height'          => array( 200, '' ), //height of image (you can leave empty if set width) /* #             $option:     0 / exact = defined size; #                          1 / portrait = keep aspect set height; #                          2 / landscape = keep aspect set width; #                          3 / auto = auto; #                          4 / crop= resize , crop; */ 'relative_image_creation_option'          => array( 'crop', 'crop' ), //set type of crop   // remember text filter after close filemanager future session 'remember_text_filter'                    => false,  );  return array_merge( $config, array(     'maxsizeupload' => ((int)(ini_get('post_max_size')) <  $config['maxsizeupload'])         ? (int)(ini_get('post_max_size')) : $config['maxsizeupload'],     'ext'=> array_merge(         $config['ext_img'],         $config['ext_file'],         $config['ext_misc'],         $config['ext_video'],         $config['ext_music']     ),     // list of options see:      https://developers.aviary.com/docs/web/setup-guide#constructor-     config     'aviary_defaults_config' => array(         'apikey'     => $config['aviary_apikey'],         'language'   => $config['aviary_language'],         'theme'      => $config['aviary_theme'],         'tools'      => $config['aviary_tools'],         'maxsize'    => $config['aviary_maxsize']         ),       )     );  ?> 

here config.php file filemanager, can see file extentsions there reason still says not allowed. have tested .png .png. .jpg .jpeg still same error them all. there anywhere else need add file extensions within project or server self? image below showing error message pops when trying upload image.

enter image description here


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -