elfinder

How to get current directory in elfinder?

有些话、适合烂在心里 提交于 2020-01-03 06:35:28
问题 I am using elfinder and I have a problem. I want to get current directory in elfinder but I can not. EDITED: this is my connector. consist of my_function that called after upload, rename or mkdir commands and I want to get uploaded files path in specified place: <?php error_reporting(0); // Set E_ALL for debuging include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinderConnector.class.php'; include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinder.class.php'; include_once dirname(__FILE

Grails elfinder plugin not working

邮差的信 提交于 2019-12-13 03:28:29
问题 I want to use a file manager in Grails (2.3.11) and found the elfinder plugin. I've read the docs and a related SO answer and still the manager does not render on my page. Here is the relevant parts of code. Hopefully someone can help. Here is my index.gsp <!DOCTYPE html> <html> <head> <meta name="layout" content="main"/> <title>File manager</title> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/smoothness/jquery-ui.css"/> <link rel=

How to show a specific folder when the interface opens in elFinder?

时间秒杀一切 提交于 2019-12-11 20:09:11
问题 Is there a way to open a specific folder when the elFinder interface opens? I want to set the folder, either by a parameter in the js client or a parameter in the call sent to the php connector, but can't find a solution... 回答1: https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options $opts = array( 'roots' => array( array( 'driver' => 'LocalFileSystem', 'path' => '/path/to/files/', 'startPath' => '/path/to/folder/to/open', 'URL' => 'http://localhost/to/files/' ) ) ); maybe

grails elfinder plugin: use placeholder in rootDir

谁说我不能喝 提交于 2019-12-11 15:35:51
问题 in my Grails project I'm using elfinder plugin to manage files and directories. I want to have a dynamic root directory, because I use the plugin for different folders. The path of directory is like the following: grails.plugin.elfinder.rootDir = "${userHome}/docm_patients_doc/{patientcf}/" where patientcf is the id of an entity in my application. When I enter into the show.gsp page of that entity, I need to replace the patientcf with the related value. How can I do it? EDIT: I've tried to

Wierd JSON result - Elfinder.NET initialization error

风流意气都作罢 提交于 2019-12-11 12:07:21
问题 I'm using ElFinder.NET connector in my MVC applications. In one application everything works fine, but the other application can't initialize Elfinder. The code used to initialize Elfinder is the same in both applications. The problem is probably in Connector.Process(this.HttpContext.Request) call. In the application, where ElFinder is working, Connector.Process returns JSON result with correct data, the other application returns a wierd result. I can see in the browser, that the request was

select and return an array of selected files in elfinder

血红的双手。 提交于 2019-12-11 11:21:47
问题 I'm using elFinder file manager. that is great and easy to use. that has multi select files capability . but I want to use it for select some files then by pressing enter keyboard button, path of those files Be returned as an Javascript Array. This is My code to initialize elFinder instance : $('.add-item').on('click', function () { var filesArr = []; $('<div id="editor" />').dialogelfinder({ url: './elfinder/php/connector.minimal.php', getFileCallback: function (file) { $('#editor')

prevent mkdir in Elfinder

早过忘川 提交于 2019-12-11 07:09:49
问题 Im trying to disable the mkdir-option in elfinder. I just want uploads in my (root)-folder allowed. The following solution does not disable the mkdir option (even I removed the mkdir). Any hints? tinyMCE.activeEditor.windowManager.open({ file : 'elfinder/elfinder.html', title : 'elFinder 2.0', width : 950, height : 630, resizable : "yes", uiOptions: { toolbar : [ // toolbar configuration ['open'], ['back', 'forward'], ['reload'], ['home', 'up'], ['mkfile', 'upload'], ['info'], ['quicklook'],

grails elfinder plugin: preview does not work

末鹿安然 提交于 2019-12-11 04:30:00
问题 I'm using elfinder plugin in my grails project, but I have problems with preview. Infact, if I select one image (gif, png, jpeg) and I try to preview it, I only see a black window. Any suggestion about how to solve this problem? 回答1: After several hours of digging finally got the desired result. Problem is with the order of js inclusion. Following is my working gsp page <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8

TinyMCE 4 with elFinder

孤者浪人 提交于 2019-12-06 03:09:08
问题 Is somebody already tried to integrate elFinder into new (4b1) version of TinyMCE? It looks like previous implementation isn't working. Please post some snippets, thanks a lot. 回答1: Ok. I found the solution: Create folder in plugins named elfinder. Download latest elFinder and put into this folder plugins/elfinder. Add plugin 'elfinder' to the list of plugins (tinymce.init). Rename js/elfinder.min.js to js/plugin.min.js Create file plugin.min.js in root folder of plugin (elfinder/plugin.min

TinyMCE 4 with elFinder

回眸只為那壹抹淺笑 提交于 2019-12-04 07:25:30
Is somebody already tried to integrate elFinder into new (4b1) version of TinyMCE? It looks like previous implementation isn't working. Please post some snippets, thanks a lot. Ok. I found the solution: Create folder in plugins named elfinder. Download latest elFinder and put into this folder plugins/elfinder. Add plugin 'elfinder' to the list of plugins (tinymce.init). Rename js/elfinder.min.js to js/plugin.min.js Create file plugin.min.js in root folder of plugin (elfinder/plugin.min.js) Insert next text inside and save: tinymce.PluginManager.add("elfinder", function (editor, url) { editor