默认账号为 admin/admin@123 和 user/12345,使用前必须在 $auth_users 中改成自己的密码哈希;默认加载 CDN 资源,离线环境需改用 offline 分支;官方提醒不要在公网长期当作常规文件管理器使用,用完应删除脚本
tinyfilemanager
prasathmaniGPL-3.0活跃维护单文件 PHP 网页文件管理器,部署一个文件就能在浏览器里浏览、上传、编辑和管理服务器文件,适合快速搭建轻量级在线文件管理入口。
Single-file PHP file manager, browser and manage your files efficiently and easily with tinyfilemanager
把 tinyfilemanager.php 复制到 Web 目录后直接访问即可README 未说明硬件要求,只需 PHP 5.5.0 及以上环境,建议启用 fileinfo、iconv、zip、tar、mbstring 扩展
单文件 PHP 网页文件管理器,丢到服务器目录即可在浏览器里管理文件
单文件 PHP 网页文件管理器,部署一个文件就能在浏览器里浏览、上传、编辑和管理服务器文件,适合快速搭建轻量级在线文件管理入口。
核心能力
- 单个 tinyfilemanager.php 文件即可部署,无需数据库
- 支持上传、下载、复制、移动、删除与新建文件文件夹
- 内置 Cloud9 编辑器,150+ 语言语法高亮与 35+ 主题
- 按用户映射独立根目录,基于会话做访问控制
- 支持 zip/tar 压缩解压、URL 导入与拖拽多文件上传
容易踩的坑
- 2.6UI Update - 2.6最新正式版2024-11-05 · 2024-11-05 00:22 UTC
What's New
- Updated all CDN library versions
- Improved the design and Dark theme colors
- Login page ui cosmetic changes
- Code format into more readable format
- Removed unused code
What's Changed
- Complete French translation by @Guts in https://github.com/prasathmani/tinyfilemanager/pull/885
- Fix phpdoc types by @mlocati in https://github.com/prasathmani/tinyfilemanager/pull/890
- Update Italian translations by @mlocati in https://github.com/prasathmani/tinyfilemanager/pull/892
- Fix the problem of login failure when $root_url is defined by @muink in https://github.com/prasathmani/tinyfilemanager/pull/896
- Fix #897 by @nguyentranchung in https://github.com/prasathmani/tinyfilemanager/pull/898
- Complete all Chinese translations by @ZhiweiWu0425 in https://github.com/prasathmani/tinyfilemanager/pull/901
- Translation supplement by @ZhiweiWu0425 in https://github.com/prasathmani/tinyfilemanager/pull/902
- Subfolder links fix by @cataalin in https://github.com/prasathmani/tinyfilemanager/pull/945
- Bug fix: Delete confirm dialog will work wrong aflter cancel. by @fbotp in https://github.com/prasathmani/tinyfilemanager/pull/942
- Removes sed command from Dockerfile by @efremovd in https://github.com/prasathmani/tinyfilemanager/pull/948
- Fixes couple issues with confirmDailog by @efremovd in https://github.com/prasathmani/tinyfilemanager/pull/951
- Fixes ajax ability to handle requests when auth disabled by @efremovd in https://github.com/prasathmani/tinyfilemanager/pull/952
- Deploy path traversal fix by @minghongg in https://github.com/prasathmani/tinyfilemanager/pull/953
- Fix french translation by @Oreloth in https://github.com/prasathmani/tinyfilemanager/pull/960
- make upload chunk size configureable by @gebi in https://github.com/prasathmani/tinyfilemanager/pull/967
- Added extensions and removed the duplicated entries by @alecos71 in https://github.com/prasathmani/tinyfilemanager/pull/968
- AceEditor: hide vertical ruler by @esyede in https://github.com/prasathmani/tinyfilemanager/pull/973
- Allow configuration for strict CSPs and GDPR by @fwiesweg in https://github.com/prasathmani/tinyfilemanager/pull/971
- Publish additional docker tags by @ssams in https://github.com/prasathmani/tinyfilemanager/pull/975
- Update Romanian translations by @sbivol in https://github.com/prasathmani/tinyfilemanager/pull/981
- Prevent logout issue after page was cached by @ner00 in https://github.com/prasathmani/tinyfilemanager/pull/1004
- tell git to always commit .php in unix-newlines by @divinity76 in https://github.com/prasathmani/tinyfilemanager/pull/1017
- Check if posix_getpwuid/posix_getgrgid calls were successful by @m-ober in https://github.com/prasathmani/tinyfilemanager/pull/1023
- use stream_copy_to_stream by @divinity76 in https://github.com/prasathmani/tinyfilemanager/pull/1014
- added bengali translation by @joybiswas007 in https://github.com/prasathmani/tinyfilemanager/pull/1018
- Fix upload of existing files, remove undefined variable and variable with constant value by @m-ober in https://github.com/prasathmani/tinyfilemanager/pull/1026
- Fix typo. by @Maikuolan in https://github.com/prasathmani/tinyfilemanager/pull/1028
- login (Redirecting to Main domain of website instead of tfm.php) fix by @xololunatic in https://github.com/prasathmani/tinyfilemanager/pull/1031
- Add configurable path display modes for better privacy and clarity by @DannyDaemonic in https://github.com/prasathmani/tinyfilemanager/pull/1034
- Resize preview image and implement zoom in/out by @ner00 in https://github.com/prasathmani/tinyfilemanager/pull/1036
- Fix highlightjs_style in config.php being ignored by @bmsurber in https://github.com/prasathmani/tinyfilemanager/pull/1039
- reduce feof() calls by @divinity76 in https://github.com/prasathmani/tinyfilemanager/pull/1041
- Typo & make text bold by @ner00 in https://github.com/prasathmani/tinyfilemanager/pull/1042
- random_bytes() only for >PHP7 by
- 2.5.3Offline Version2023-02-22 · 2023-02-22 02:18 UTC
查看更新说明
- Now tinyfilemanager will work offline without CND resources
What's Changed
- Complete French translation by @Guts in https://github.com/prasathmani/tinyfilemanager/pull/885
- Fix phpdoc types by @mlocati in https://github.com/prasathmani/tinyfilemanager/pull/890
- Update Italian translations by @mlocati in https://github.com/prasathmani/tinyfilemanager/pull/892
- Fix the problem of login failure when $root_url is defined by @muink in https://github.com/prasathmani/tinyfilemanager/pull/896
- Fix #897 by @nguyentranchung in https://github.com/prasathmani/tinyfilemanager/pull/898
- Complete all Chinese translations by @ZhiweiWu0425 in https://github.com/prasathmani/tinyfilemanager/pull/901
- Translation supplement by @ZhiweiWu0425 in https://github.com/prasathmani/tinyfilemanager/pull/902
- Subfolder links fix by @cataalin in https://github.com/prasathmani/tinyfilemanager/pull/945
- Bug fix: Delete confirm dialog will work wrong aflter cancel. by @fbotp in https://github.com/prasathmani/tinyfilemanager/pull/942
- Removes sed command from Dockerfile by @efremovd in https://github.com/prasathmani/tinyfilemanager/pull/948
- Fixes couple issues with confirmDailog by @efremovd in https://github.com/prasathmani/tinyfilemanager/pull/951
- Fixes ajax ability to handle requests when auth disabled by @efremovd in https://github.com/prasathmani/tinyfilemanager/pull/952
- Deploy path traversal fix by @minghongg in https://github.com/prasathmani/tinyfilemanager/pull/953
- Fix french translation by @Oreloth in https://github.com/prasathmani/tinyfilemanager/pull/960
- make upload chunk size configureable by @gebi in https://github.com/prasathmani/tinyfilemanager/pull/967
- Added extensions and removed the duplicated entries by @alecos71 in https://github.com/prasathmani/tinyfilemanager/pull/968
- AceEditor: hide vertical ruler by @esyede in https://github.com/prasathmani/tinyfilemanager/pull/973
- Allow configuration for strict CSPs and GDPR by @fwiesweg in https://github.com/prasathmani/tinyfilemanager/pull/971
New Contributors
- @muink made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/896
- @ZhiweiWu0425 made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/901
- @cataalin made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/945
- @fbotp made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/942
- @minghongg made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/953
- @Oreloth made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/960
- @gebi made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/967
- @fwiesweg made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/971
Full Changelog: https://github.com/prasathmani/tinyfilemanager/compare/2.5.0...2.5.3
- 2.5.0Winter Release 222022-11-19 · 2022-11-19 19:56 UTC
查看更新说明
- Improved UI design
- Redesign Rename, Delete, Download modal popups
- Migrate into latest bootstrap version
- Update all CDN urls into new version
- added pre-connect and pre-fetch to improve the loading time
- Added Parallel Chunk Uploads feature
- CSRF token added, more secure now
- Removed quick Preview
- Removed
config.sample.php, to make it simple - Removed calc folder size feature. due to performance impact
- Fix root folder advance search issue fixed
Fixed following issues, #667 #664 #634 #555 #547 #477 #273 #861 #859 #846 #838 #836 #819 #810 #773 #771 #765 #763 #753 #734
What's Changed
- Optimized and refactored fm_get_directorysize() function by @michael-milette in https://github.com/prasathmani/tinyfilemanager/pull/720
- Format JSON by @nguyentranchung in https://github.com/prasathmani/tinyfilemanager/pull/723
- Add danish language by @AgentSmith0 in https://github.com/prasathmani/tinyfilemanager/pull/728
- Fix incorrect path of the version svg in README by @AnnAngela in https://github.com/prasathmani/tinyfilemanager/pull/740
- Update translation.json by @The-Exterminator in https://github.com/prasathmani/tinyfilemanager/pull/742
- Fix Dutch translation by @rickvl in https://github.com/prasathmani/tinyfilemanager/pull/745
- Add Galician language by @luidoc in https://github.com/prasathmani/tinyfilemanager/pull/747
- Add missing lines for German translation by @sinth in https://github.com/prasathmani/tinyfilemanager/pull/766
- fix download Content-Type header by @mclorch in https://github.com/prasathmani/tinyfilemanager/pull/770
- resolve sorting issues, keep back button at top of table by @Sundwalltanner in https://github.com/prasathmani/tinyfilemanager/pull/779
- Fix advanced search issue for read-only user by @zaniasoft in https://github.com/prasathmani/tinyfilemanager/pull/785
- Improve
Dockerfile- Switch to Linuxserver.io base image with PHP 8 by @danie1k in https://github.com/prasathmani/tinyfilemanager/pull/775 - Removed unused function by @mhrstmnn in https://github.com/prasathmani/tinyfilemanager/pull/806
- More accurate ip recognition by @RSaied in https://github.com/prasathmani/tinyfilemanager/pull/813
- Update russia translate and fix bug by @zedzhen in https://github.com/prasathmani/tinyfilemanager/pull/815
- Added .yml, .yaml and .toml extensions. by @Sebjugate in https://github.com/prasathmani/tinyfilemanager/pull/816
- word change mistranslated in Spanish by @andresayac in https://github.com/prasathmani/tinyfilemanager/pull/818
- Add webm to videos by @AgentSmith0 in https://github.com/prasathmani/tinyfilemanager/pull/833
- Adds json mime type as text type to allow edit json files by @efremovd in https://github.com/prasathmani/tinyfilemanager/pull/841
- Removes some php ext installs as they are already installed in base by @efremovd in https://github.com/prasathmani/tinyfilemanager/pull/848
- Update tinyfilemanager.php by @ririko5834 in https://github.com/prasathmani/tinyfilemanager/pull/874
- Fixes advanced search not working. by @rizrmd in https://github.com/prasathmani/tinyfilemanager/pull/878
- Downloading file - PHP warning loop "Permission denied" by @llcool in https://github.com/prasathmani/tinyfilemanager/pull/879
New Contributors
- @nguyentranchung made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/723
- @AnnAngela made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/740
- @The-Exterminator made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/742
- @rickvl made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/745
- @luidoc made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/747
- @sinth made their first contribution in https://github.com/prasathmani/tinyfilemanager/pull/766
- @mclorch made their first contribution in https://github.com/prasathmani/tinyf
- 2.4.7Chunk file upload and Security fix2022-02-12 · 2022-02-12 08:34 UTC
查看更新说明
What's Changed
- Remove duplicate code block by @mircobabini in https://github.com/prasathmani/tinyfilemanager/pull/377
- Czech translation update by @safraja in https://github.com/prasathmani/tinyfilemanager/pull/368
- Correct wrong word in Vietnamese language. by @jhuyvu in https://github.com/prasathmani/tinyfilemanager/pull/381
- Notice: A non well formed numeric value encountered by @michael-milette in https://github.com/prasathmani/tinyfilemanager/pull/386
- Added Error Message When File Fails to Write by @zachlankton in https://github.com/prasathmani/tinyfilemanager/pull/399
- Fixes #183, Fixes #289 by @zachlankton in https://github.com/prasathmani/tinyfilemanager/pull/400
- Update french translation by @Elegary in https://github.com/prasathmani/tinyfilemanager/pull/392
- Fix sorting by date and size by @safraja in https://github.com/prasathmani/tinyfilemanager/pull/387
- fix: prevent double write to file by @DvashVistrame in https://github.com/prasathmani/tinyfilemanager/pull/409
- Update Catalan translation by @adalmau in https://github.com/prasathmani/tinyfilemanager/pull/410
- fix(actions): creating a backup in FM_ROOT_PATH by @DvashVistrame in https://github.com/prasathmani/tinyfilemanager/pull/418
- Update russian translation by @DvashVistrame in https://github.com/prasathmani/tinyfilemanager/pull/414
- Add: Mongolian (cyrillic) language added. by @almas in https://github.com/prasathmani/tinyfilemanager/pull/422
- Update italian translation by @Mich3le3D in https://github.com/prasathmani/tinyfilemanager/pull/440
- Update translation.json by @tommy1616 in https://github.com/prasathmani/tinyfilemanager/pull/451
- Update German translation by @KaiserBarbarossa in https://github.com/prasathmani/tinyfilemanager/pull/447
- Update Indonesia translation by @adit in https://github.com/prasathmani/tinyfilemanager/pull/435
- Norwegian translation[NO] by @asd20752 in https://github.com/prasathmani/tinyfilemanager/pull/474
- Fix filesize display in file viewer by @badcf00d in https://github.com/prasathmani/tinyfilemanager/pull/475
- Added Finnish translation by @mediaclinic in https://github.com/prasathmani/tinyfilemanager/pull/486
- Feat/mixed changes by @ccdd13 in https://github.com/prasathmani/tinyfilemanager/pull/502
- Security Fix for XSS - huntr.dev by @huntr-helper in https://github.com/prasathmani/tinyfilemanager/pull/511
- Fixed Rename with folder quotes #533 by @34will in https://github.com/prasathmani/tinyfilemanager/pull/534
- Added in preferences light or dark theme by @Roni-Neto in https://github.com/prasathmani/tinyfilemanager/pull/539
- Portuguese, with new translations by @Roni-Neto in https://github.com/prasathmani/tinyfilemanager/pull/538
- More translations added by @Roni-Neto in https://github.com/prasathmani/tinyfilemanager/pull/537
- I added the Hungarian language (translation.json) by @simonszoft in https://github.com/prasathmani/tinyfilemanager/pull/509
- French translation: sort and complete by @Guts in https://github.com/prasathmani/tinyfilemanager/pull/497
- 🌐 Update Korean translation by @ShoyuVanilla in https://github.com/prasathmani/tinyfilemanager/pull/496
- Fix PHP 5.X by @adri1b in https://github.com/prasathmani/tinyfilemanager/pull/494
- PHP8 fix and few other changes by @safraja in https://github.com/prasathmani/tinyfilemanager/pull/562
- Fix function name and add extensions for icons by @sbivol in https://github.com/prasathmani/tinyfilemanager/pull/567
- Error with determining MIME type for file extensions not listed by @schmigz in https://github.com/prasathmani/tinyfilemanager/pull/568
- Added some missing translations by @AgentSmith0 in https://github.com/prasathmani/tinyfilemanager/pull/608
- Fix saving of empty files by @AgentSmith0 in https://github.com/prasathmani/tinyfilemanager/pull/612
- Adding a Slovenian translation by @Linux-Alex in https://github.com/prasathmani/tinyfilemanager/pull/614
- feat: add Dockerfile and auto publish. by @wangerz
- 2.4.3Dark Theme Version2020-05-24 · 2020-05-24 08:39 UTC
查看更新说明
- Added dark theme option
- Now file manager support external configuration file (optional)
- Security Updates
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
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
zipandtarformats. - :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.jsfor 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
