// Upload file size limit (in bytes) $upload_max_size = 50 * 1024 * 1024; // 50MB tinyfilemanager 2.4.3

You can save this as tinyfilemanager.php and place it in your web root. // Upload file size limit (in bytes) $upload_max_size

header('WWW-Authenticate: Basic realm="TinyFileManager"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authentication required'; exit; header('HTTP/1.0 401 Unauthorized')

// Helper functions function get_size($bytes) if ($bytes >= 1073741824) return number_format($bytes / 1073741824, 2) . ' GB'; if ($bytes >= 1048576) return number_format($bytes / 1048576, 2) . ' MB'; if ($bytes >= 1024) return number_format($bytes / 1024, 2) . ' KB'; return $bytes . ' B';

// Main logic $current_path = isset($_GET['path']) ? $_GET['path'] : ''; $full_path = $root_path . '/' . ltrim($current_path, '/'); $full_path = realpath($full_path);

Tinyfilemanager 2.4.3 -

// Upload file size limit (in bytes) $upload_max_size = 50 * 1024 * 1024; // 50MB

You can save this as tinyfilemanager.php and place it in your web root.

header('WWW-Authenticate: Basic realm="TinyFileManager"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authentication required'; exit;

// Helper functions function get_size($bytes) if ($bytes >= 1073741824) return number_format($bytes / 1073741824, 2) . ' GB'; if ($bytes >= 1048576) return number_format($bytes / 1048576, 2) . ' MB'; if ($bytes >= 1024) return number_format($bytes / 1024, 2) . ' KB'; return $bytes . ' B';

// Main logic $current_path = isset($_GET['path']) ? $_GET['path'] : ''; $full_path = $root_path . '/' . ltrim($current_path, '/'); $full_path = realpath($full_path);