PHP和Simogeo Filemanager [英] PHP and Simogeo Filemanager

查看:89
本文介绍了PHP和Simogeo Filemanager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



所以我正在开展一个项目,我正在实施 Simogeo Filemanager。



有没有人有这个系统的经验,我可能需要一点点的支持。



我的第一个问题是我不知道如何传递我想上传文件的文件路径。它使用默认的/ inc / lib / filemanager / userfiles /。



我希望这里有一些Simogeo专家。

解决方案

您好,



您想要的是通过更改配置文件(filemanager.config.js)中的相应选项来完成。以下是如何指定位于 serverRoot 下的其他文件夹。

serverRoot:true,
fileRoot: myapp / documents /,



如果您想在 serverRoot 下使用未找到的文件夹,那么

serverRoot:false,
fileRoot:/ home / secret / docs /,



注意:确保服务器用户对此文件夹具有适当的读/写权限。



如果你想通过php代码动态做,那么你可以按照以下方式进行:

  


fPath = ' / home / secret / docs /';


fm = new Filemanager();

Hello,

so i am working on a project where i am implementing Simogeo Filemanager.

Does anyone have any experience with this system, i could need a litle bit support here.

My first problem here is i dont realy know how to pass a file path where i want to upload my files. It aways using the default /inc/lib/filemanager/userfiles/.

I hope there are some Simogeo experts here.

解决方案

Hello,

What you want is done by changing the appropriate options in configuration file (filemanager.config.js). Here is how you can specify a different folder located under serverRoot.

"serverRoot": true,
"fileRoot": "myapp/documents/",


If you want to use a folder not located under the serverRoot then

"serverRoot": false,
"fileRoot": "/home/secret/docs/",


Note: Make sure that the server user has appropriate read/write permissions to this folder.

If you want to do dynamically via php code then you can do it following way


fPath = '/home/secret/docs/';


fm = new Filemanager();


这篇关于PHP和Simogeo Filemanager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆