Ajaxplorer 弹出文件选择器
我尝试使用 Ajaxplorer 作为选择服务器上的文件并以表单发布文件路径的方式(基本上将文件链接到数据库记录)。我希望该行为像 CKFinder 的弹出功能一样工作。我希望用户单击“选择文件”按钮,Ajaxplorer 出现在新窗口中,用户选择文件,然后将该文件的路径发送回表单并关闭弹出窗口。我非常确定这是可能的,因为 Ajaxplorer 的 CKEditor 插件似乎就是这样做的。
我是 Ajaxplorer 的新手,所以我只是在深入研究。我希望能够以某种方式将回调方法传递给 Ajaxplorer,该方法将在选择时填充我的字段。但是,根据文档,我似乎无法做到这一点。
另一个选项看起来像是创建一个插件。我很高兴这样做,但文档很薄弱,而且似乎其他人现在已经这样做了。因此,在花费几个小时尝试学习插件系统之前,我想向社区提出这个问题。 Ajaxplorer 是否有文档或插件可以让我将选定的文件信息从弹出窗口发送回我的表单?
I'm trying to use Ajaxplorer as a way to choose a file on the server and publish the file path in a form (basically linking the file to a db record). I want the behavior to work like CKFinder's popup functionality. I want the user to click a "choose file" button, Ajaxplorer appears in a new window, the user selects the file, and then the path to that file is sent back to the form and the popup is closed. I'm pretty sure that this is possible because the CKEditor plugin for Ajaxplorer seems to do just that.
I'm new to Ajaxsplorer, so I am just digging in. I was hoping that I could somehow pass a callback method to Ajaxplorer that would populate my field on select. However, it doesn't appear that I can do that based on the docs.
The other option looks like creating a plugin. I'm happy to do this, but the documentation is weak and it seems like others would have done this by now. So, before digging in to that for hours trying to learn the plugin system, I wanted to pose this question to the community. Is there documentation or a plugin for Ajaxplorer that will allow me to send selected file info from a popup window back to my form?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够通过构建一个插件来完成此任务。我已将 URL 附加到该插件,以防其他人可能需要类似的功能。
Ajaxplorer-Popup-Selector
I was able to accomplish this by building a plugin. I have attached the URL to the plugin in case others may want similar functionality.
Ajaxplorer-Popup-Selector