tinyfilemanager
Single-file PHP file manager, browser and manage your files efficiently and easily with tinyfilemanager
Top Related Projects
A web based file manager,web IDE / browser based code editor
Quick Overview
TinyFileManager is a single-file PHP file manager that provides a web-based interface for managing files and folders on a server. It offers a simple and lightweight solution for file management tasks, including uploading, downloading, editing, and deleting files, as well as creating and managing directories.
Pros
- Easy to deploy: Single PHP file implementation makes it simple to set up and use
- Feature-rich: Offers a wide range of file management functionalities
- Customizable: Supports themes and language localization
- Secure: Includes authentication and various security features
Cons
- Limited scalability: May not be suitable for managing large numbers of files or heavy traffic
- Potential security risks: As with any file manager, improper configuration could lead to security vulnerabilities
- Dependency on PHP: Requires a PHP environment to run, which may not be suitable for all server setups
Getting Started
- Download the
tinyfilemanager.php
file from the GitHub repository. - Place the file in your desired web directory.
- Configure the script by editing the settings at the top of the file:
$auth_users = array(
'admin' => password_hash('admin@123', PASSWORD_DEFAULT),
'user' => password_hash('user@123', PASSWORD_DEFAULT)
);
$root_path = $_SERVER['DOCUMENT_ROOT'];
$root_url = '';
- Access the file manager through your web browser (e.g.,
http://yourdomain.com/tinyfilemanager.php
). - Log in using the credentials you set in the configuration.
Note: Make sure to change the default credentials and properly secure your server to prevent unauthorized access.
Competitor Comparisons
A web based file manager,web IDE / browser based code editor
Pros of KodExplorer
- More feature-rich, offering a complete web-based file management system with a user-friendly interface
- Supports multiple languages and themes, enhancing customization options
- Includes built-in text editor and image viewer for seamless file editing and viewing
Cons of KodExplorer
- Larger codebase and more complex setup compared to TinyFileManager
- May be overkill for simple file management needs
- Requires more server resources due to its extensive features
Code Comparison
KodExplorer (PHP):
public function pathInit(){
$this->path = $this->in['path'];
$this->path = $this->format($this->path);
$this->path = rtrim($this->path,'/').'/';
}
TinyFileManager (PHP):
function fm_clean_path($path, $trim = true)
{
$path = $trim ? trim($path) : $path;
$path = trim($path, '\\/');
$path = str_replace(array('../', '..\\'), '', $path);
$path = get_absolute_path($path);
return str_replace('\\', '/', $path);
}
Both projects use PHP for path handling, but KodExplorer's approach is more object-oriented, while TinyFileManager uses a functional approach. KodExplorer's code is part of a larger class structure, whereas TinyFileManager's function is more standalone and focused on path cleaning.
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Tiny File Manager
TinyFileManager is a versatile web-based PHP file manager designed for simplicity and efficiency. This lightweight single-file PHP application can be effortlessly integrated into any server directory, allowing users to store, upload, edit, and manage files and folders directly through their web browser. With multi-language support and compatibility with PHP 5.5+, TinyFileManager enables the creation of individual user accounts, each with its dedicated directory. The platform also includes built-in functionality for handling text files using the Cloud9 IDE. Featuring syntax highlighting for over 150 languages and more than 35 themes, TinyFileManager offers a comprehensive solution for file management in an online environment.
Caution! Avoid utilizing this script as a standard file manager in public spaces. It is imperative to remove this script from the server after completing any tasks.
Demo
Documentation
Tinyfilemanager is highly documented on the wiki pages.
Requirements
- PHP 5.5.0 or higher.
- Fileinfo, iconv, zip, tar and mbstring extensions are strongly recommended.
How to use
Download ZIP with latest version from master branch.
Just copy the tinyfilemanager.php to your webspace - thats all :) You can also change the file name from "tinyfilemanager.php" to something else, you know what i meant for.
Default username/password: admin/admin@123 and user/12345.
:warning: Warning: Please set your own username and password in $auth_users
before use. password is encrypted with password_hash()
. to generate new password hash here
To enable/disable authentication set $use_auth
to true or false.
:information_source: Add your own configuration file config.php in the same folder to use as additional configuration file.
:information_source: To work offline without CDN resources, use offline branch
:loudspeaker: Features
- :cd: Open Source: Lightweight, minimalist, and extremely simple to set up.
- :iphone: Mobile Friendly: Optimized for touch devices and mobile viewing.
- :information_source: Core Features: Easily create, delete, modify, view, download, copy, and move files.
- :arrow_double_up: Advanced Upload Options: Ajax-powered uploads with drag-and-drop support, URL imports, and multi-file uploads with extension filtering.
- :file_folder: Folder & File Management: Create and organize folders and files effortlessly.
- :gift: Compression Tools: Compress and extract files in
zip
andtar
formats. - :sunglasses: User Permissions: User-specific root folder mapping and session-based access control.
- :floppy_disk: Direct URLs: Easily copy direct URLs for files.
- :pencil2: Code Editor: Includes Cloud9 IDE with syntax highlighting for 150+ languages and 35+ themes.
- :page_facing_up: Document Preview: Google/Microsoft document viewer for PDF/DOC/XLS/PPT, supporting previews up to 25 MB.
- :zap: Security Features: Backup capabilities, IP blacklisting, and whitelisting.
- :mag_right: Search Functionality: Use
datatable.js
for fast file search and filtering. - :file_folder: Customizable Listings: Exclude specific folders and files from directory views.
- :globe_with_meridians: Multi-language Support: Translations available in 35+ languages with
translation.json
. - :bangbang: And Much More!
Deploy by Docker
License, Credit
- Available under the GNU license
- Original concept and development by github.com/alexantr/filemanager
- CDN Used - jQuery, Bootstrap, Font Awesome, Highlight js, ace js, DropZone js, and DataTable js
- To report a bug or request a feature, please file an issue
- Contributors
Top Related Projects
A web based file manager,web IDE / browser based code editor
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot