elfinder(开源php网盘)
elfinder(开源php网盘)
演示和代码
演示:
https://studio-42.github.io/elFinder/#elf*l1*Lw
代码:
https://github.com/Studio-42/elFinder#downloads
解决方案
-
不能连接到服务器端. 访问被拒绝. HTTP error 403
的解决方案更改文件名即可。步骤如下:
-
进入php文件夹(如
C:\\inetpub\\wwwroot\\elFinder\\php
); -
将
connector.minimal.php-disk
文件更名为connector.minimal.php
-
-
更改页面高度为100%或其他百分比数字
<aside> 💡 提示: 针对于2.1.65无效,对于
2.1.62
有效。放在URL上方将不起作用。</aside>
根目录elfinder.html文件中的约19行的「
url:
」下方,增加一行:heiaht:'100%', https://github.com/Studio-42/elFinder/discussions/3596
https://github.com/Studio-42/elFinder/wiki/Client-configuration-options-2.1#height
-
在头部添加文字
-
拒绝和允许上传的扩展名
C:\inetpub\wwwroot\elFinder-2.1.62\php
elFinderVolumeDriver.class.php(397行)
-
使用Windows10主题
-
上传权限
https://github.com/Studio-42/elFinder/wiki/Simple-file-permissions-control
文件:
https://flowus.cn/preview/0823c1b3-271e-408f-86e9-fcd07433663f
-
增加卷
文档:https://github.com/Studio-42/elFinder/issues/98
要修改的文件:
C:\inetpub\wwwroot\elFinder-2.1.62\php\connector.minimal.php
步骤:
-
打开
C:\\inetpub\\wwwroot\\elFinder-2.1.62\\php\\connector.minimal.php
-
复制粘贴以下内容:
-
新建相应文件夹。
代码:
关键词:LocalFileSystem
array( 'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED) 'path' => 'path/to/files/root', // path to files (REQUIRED) 'URL' => '<http://www.localhost.com/files/root/>', // URL to files (REQUIRED) 'alias' => 'Root', 'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL) ), 效果:
-
-
修改关于信息
C:\inetpub\wwwroot\elFinder-2.1.62\js\i18n
-
帮助
\elFinder-2.1.62\js\i18n\help
en.html.js
-
-
无法下载多个文件或文件夹,提示「Cannot open local directory」
可能是服务器文件夹权限的问题。
设置完成后,虽然可以下载,但下载的格式是tar
-
权限(下载、上传、锁定、隐藏)
以下为禁止上传步骤:
- 打开
C:\\inetpub\\wwwroot\\elFinder-2.1.62\\php
- 打开
elFinderVolumeDriver.class.php
- 查找
'defaults' => array(
- 将write的值更为
false
(在452行,false为「假」,代表「禁止」)
参考:https://github.com/Studio-42/elFinder/issues/98(2013年11月18日)
- 打开
-
符号连接
不确定是否支持符号连接,至少默认是不支持。
-
压缩文件
默认下载文件夹或下载多个文件是tar格式,目前未研究好如何下载为
zip
或rar文件。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
2022-01-28 youtube视频下载
2022-01-28 解决「windows的资源管理器创建、删除文件,修改文件名,需刷新才更新」的问题(添加了“网络位置”导致的情况)
2022-01-28 安卓手机截图的目录文件夹
2022-01-28 facebook和Google的验证码都有问题(说是验证码包含字母,但字母又输入不上去)
2022-01-28 响应式web原型设计工具——froont