title: Responsive File Manager Memory Limit Error
body: <p>i am having trouble uploading large files with Responsive File Manager, it shows Not enough memory limit error.</p>
  
  <p>i tried changing limits in php.ini </p>
  
  <p>upload limit to 100MB
  post max size to 100MB
  script memory limit to 300MB
  max execution time to 300</p>
  
  <p>i also changed the limit in config.php</p>
  
  <p>'MaxSizeUpload' => 100</p>
  
  <p>But still the same error.</p>
  
  <p>now even few 100 kb is not uploading.</p>
  
  <p>what may be the problem?</p>
  
  <p>Edit 1:</p>
  
  <p>i use the default upload.php from responsive file manager for uploading my files</p>
  
  <p>at line 157 the memory error is checked</p>
  
  <p>default <a href="https://github.com/wilvers/responsive-file-manager/blob/master/filemanager/filemanager/upload.php" rel="nofollow noreferrer">upload.php</a></p>
  
  <p>my config.php</p>
  
  <pre><code>&lt;?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('Asia/Kolkata');
  
  
  define('USE_ACCESS_KEYS', false); // TRUE or FALSE
  
  define('DEBUG_ERROR_MESSAGE', true); // TRUE or FALSE
  
  $config = array(
  
      'base_url' =&gt; ((isset($_SERVER['HTTPS']) &amp;&amp; $_SERVER['HTTPS'] &amp;&amp; ! in_array(strtolower($_SERVER['HTTPS']), array( 'off', 'no' ))) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'],
  
      'upload_dir' =&gt; '/photos/original/',
  
      'current_path' =&gt; '../photos/original/',
  
      'thumbs_base_path' =&gt; '../cache/',
  
      'ftp_host'         =&gt; false,
      'ftp_user'         =&gt; "user",
      'ftp_pass'         =&gt; "pass",
      'ftp_base_folder'  =&gt; "base_folder",
      'ftp_base_url'     =&gt; "http://site to ftp root",
  
      'ftp_thumbs_dir' =&gt; '/thumbs/',
      'ftp_ssl' =&gt; false,
      'ftp_port' =&gt; 21,
  
      'access_keys' =&gt; array(),
  
      'MaxSizeTotal' =&gt; false,
  
      'MaxSizeUpload' =&gt; 100,
  
      'fileFolderPermission' =&gt; 0755,
  
      'default_language' =&gt; "en_EN",
  
      'icon_theme' =&gt; "ico",
  
      'show_total_size'                       =&gt; false,
  
      'show_folder_size'                      =&gt; false,
  
      'show_sorting_bar'                      =&gt; true,
  
      'show_filter_buttons'                   =&gt; true,
  
      'show_language_selection'               =&gt; false,
  
      'transliteration'                       =&gt; false,
  
      'convert_spaces'                        =&gt; false,
  
      'replace_with'                          =&gt; "_",
      'lower_case'                            =&gt; false,
      'add_time_to_img'                       =&gt; false,
  
      'lazy_loading_file_number_threshold'    =&gt; 0,
      'image_max_width'                         =&gt; 0,
      'image_max_height'                        =&gt; 0,
      'image_max_mode'                          =&gt; 'auto',
  
      'image_resizing'                          =&gt; false,
      'image_resizing_width'                    =&gt; 0,
      'image_resizing_height'                   =&gt; 0,
      'image_resizing_mode'                     =&gt; 'auto', 
      'image_resizing_override'                 =&gt; false,
  
      'image_watermark'                          =&gt; false,
  
      'image_watermark_position'                 =&gt; 'br',
  
      'image_watermark_padding'                 =&gt; 0,
  
      'default_view'                            =&gt; 0,
  
      'ellipsis_title_after_first_row'          =&gt; true,
  
      'delete_files'                            =&gt; true,
      'create_folders'                          =&gt; false,
      'delete_folders'                          =&gt; false,
      'upload_files'                            =&gt; true,
      'rename_files'                            =&gt; true,
      'rename_folders'                          =&gt; false,
      'duplicate_files'                         =&gt; false,
      'copy_cut_files'                          =&gt; true, // for copy/cut files
      'copy_cut_dirs'                           =&gt; false, // for copy/cut directories
      'chmod_files'                             =&gt; false, // change file permissions
      'chmod_dirs'                              =&gt; false, // change folder permissions
      'preview_text_files'                      =&gt; false, // eg.: txt, log etc.
      'edit_text_files'                         =&gt; false, // eg.: txt, log etc.
      'create_text_files'                       =&gt; false, // only create files with exts. defined in $editable_text_file_exts
  
      'previewable_text_file_exts'              =&gt; 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'  =&gt; array( 'txt', 'log' ),
  
      'editable_text_file_exts'                 =&gt; array( 'txt', 'log', 'xml', 'html', 'css', 'htm', 'js' ),
  
      'googledoc_enabled'                       =&gt; true,
      'googledoc_file_exts'                     =&gt; array( 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx' ),
      'viewerjs_enabled'                        =&gt; true,
      'viewerjs_file_exts'                      =&gt; array( 'pdf', 'odt', 'odp', 'ods' ),
      'copy_cut_max_size'                       =&gt; 100,
  
      'copy_cut_max_count'                      =&gt; 200,
  
      'ext_img'                                 =&gt; array( 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'svg' ), //Images
      'ext_file'                                =&gt; array(), //Files
      'ext_video'                               =&gt; array(), //Video
      'ext_music'                               =&gt; array(), //Audio
      'ext_misc'                                =&gt; array(), //Archives
  
      'aviary_active'                           =&gt; false,
      'aviary_apiKey'                           =&gt; "2444282ef4344e3dacdedc7a78f8877d",
      'aviary_language'                         =&gt; "en",
      'aviary_theme'                            =&gt; "light",
      'aviary_tools'                            =&gt; "all",
      'aviary_maxSize'                          =&gt; "1400",
  
      'file_number_limit_js'                    =&gt; 500,
  
      'hidden_folders'                          =&gt; array(),
  
      'hidden_files'                            =&gt; array( 'config.php' ),
      'url_upload'                             =&gt; false,
  
      'java_upload'                             =&gt; false,
      'JAVAMaxSizeUpload'                       =&gt; 200, //Gb
  
      'fixed_image_creation'                    =&gt; false, 
      'fixed_path_from_filemanager'             =&gt; array( '../images/thumbs2/', '../test1/' ), 
      'fixed_image_creation_name_to_prepend'    =&gt; array( 'thumb_', 'test_' ), 
      'fixed_image_creation_to_append'          =&gt; array( '', '' ),
      'fixed_image_creation_width'              =&gt; array( 300, 400 ), 
      'fixed_image_creation_height'             =&gt; array( 200, '' ),
  
      'fixed_image_creation_option'             =&gt; array( 'auto', 'auto' ), 
  
      'relative_image_creation'                 =&gt; true, 
      'relative_path_from_current_pos'          =&gt; array( '../hd', '../fullhd','../thumbs' ), 
      'relative_image_creation_name_to_prepend' =&gt; array( '', '' , ''), 
      'relative_image_creation_name_to_append'  =&gt; array( '', '',''),
      'relative_image_creation_width'           =&gt; array( 1280, 1920 , 200),
      'relative_image_creation_height'          =&gt; array( 720, 1080, 200 ),
  
      'relative_image_creation_option'          =&gt; array( 'auto', 'auto', 'auto' ),
  
  
      'remember_text_filter'                    =&gt; false,
  
  );
  
  return array_merge(
      $config,
      array(
          'MaxSizeUpload' =&gt; ((int)(ini_get('post_max_size')) &lt; $config['MaxSizeUpload'])
              ? (int)(ini_get('post_max_size')) : $config['MaxSizeUpload'],
          'ext'=&gt; array_merge(
              $config['ext_img'],
              $config['ext_file'],
              $config['ext_misc'],
              $config['ext_video'],
              $config['ext_music']
          ),
  
          'aviary_defaults_config' =&gt; array(
              'apiKey'     =&gt; $config['aviary_apiKey'],
              'language'   =&gt; $config['aviary_language'],
              'theme'      =&gt; $config['aviary_theme'],
              'tools'      =&gt; $config['aviary_tools'],
              'maxSize'    =&gt; $config['aviary_maxSize']
          ),
      )
  );
  ?&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fI7KH.png" rel="nofollow noreferrer">error screenshot</a></p>