elFinder 2.0 Beta
Added by Troex Nevelin 10 months ago
We are pleased to announce first public beta version of elFinder 2.0¶
http://elfinder.org¶
Test it and send us bug reports please. elFinder is moving to new domain and github service
Replies (14)
RE: elFinder 2.0 Beta
-
Added by simon watts 10 months ago
Thanks for this Troex. Looks far superior to any file manager on the web. Cant get it to work on my server though. Says invalid file format when I upload. Also does the SQL extention work. Many thanks for this. I appreciate your hard work.
RE: elFinder 2.0 Beta
-
Added by simon watts 10 months ago
Its ok its working now. I used the git hub repository which did not work, the standard download is ok.It is superb. Once again thanks for this. In the connector I changed the path to c: and it actually picked up the whole of my hard drive. It is instant and about 5 times faster than even microsoft explorer on my machine.
ps I noticed the sql settings. Do they work. Is this something I can work on.
RE: elFinder 2.0 Beta
-
Added by Dmitry Levashov 10 months ago
To use mysql you have to create database, run MySQLStorage.sql on it, insert record for root dir, and configure driver smth like this
'driver' => 'MySQL', 'path' => 1, // root dir ID 'user' => 'dbuser', 'pass' => 'pass', 'db' => 'dbname',
RE: elFinder 2.0 Beta
-
Added by simon watts 10 months ago
Thanks for reply. I tried and it didnt work. Where abouts do I configure driver. Is it in connector.php. I previously put details in the elfinder sql class. I am not sure what you mean about root directory. You have path as 1. Hope you can help.
RE: elFinder 2.0 Beta
-
Added by Dmitry Levashov 10 months ago
You have path as 1. Hope you can help.
In elfinder_files table you must insert one record for root directory - this record ID is a root path in config
RE: elFinder 2.0 Beta
-
Added by simon watts 10 months ago
Thanks Dimitry but still no joy. I really want to get this working. I have the following tables in sql. (Do you have a demo sql file with record included?).
I have the following in SQL. What would I need to add.
id
parent_id
name
content
size
mtime
mime
width
height
in connector config i have
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => '../files/', // path to files (REQUIRED)
'URL' => dirname($_SERVER['PHP_SELF']) . '/../files/', // URL to files (REQUIRED)
'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL)
under the mysql class I have
$opts = array(
'host' => 'localhost',
'user' => 'root',
'pass' => 'mypassword',
'db' => 'elfinder',
'port' => null,
'socket' => null,
'files_table' => 'elfinder_file',
'tmbPath' => '',
'tmpPath' => ''
);
These are all the changes I have added. Am i missing something obvious. I really appreciate if you can help.
RE: elFinder 2.0 Beta
-
Added by Dmitry Levashov 10 months ago
Dont touch mysql class!
Use options
Here live example from my machine
$opts = array(
'locale' => 'en_US.UTF-8',
'bind' => array(
'mkdir mkfile rename duplicate upload rm paste' => array(new elFinderSimpleLogger(), 'write'),
),
'debug' => true,
'roots' => array(
// array(
// 'driver' => 'LocalFileSystem',
// 'path' => '../files2',
// ),
array(
// 'id' => 'x5',
'driver' => 'LocalFileSystem',
'path' => '../files/',
'URL' => dirname($_SERVER['PHP_SELF']) . '/../files/',
'alias' => 'File system',
'disabled' => array(),
'maxArcFilesSize' => 100,
// 'accessControl' => array($acl, 'fsAccess'),
// 'accessControlData' => array('uid' => 1),
// 'acceptedName' => 'validName',
'uploadAllow' => array('all'),
'uploadDeny' => array('all'),
'uploadOrder' => 'deny,allow',
'uploadOverwrite' => true,
'uploadMaxSize' => '128m',
// 'copyOverwrite' => false,
'copyJoin' => true,
'mimeDetect' => 'internal',
'tmbCrop' => false,
'imgLib' => 'gd',
# 'tmbURL' => '.tmb/',
'utf8fix' => false,
// 'acceptedName' => '/^[\W]*$/',
'attributes' => array(
array(
'pattern' => '/^\/\./',
'read' => false,
'write' => false,
'hidden' => true,
'locked' => true
)
),
),
array(
'driver' => 'MySQL',
'path' => 1,
// 'treeDeep' => 2,
'user' => 'root',
'pass' => 'hane',
'db' => 'elfinder',
'user_id' => 1,
'accessControl' => 'access',
'separator' => ':',
'copyTo' => false,
// 'URL' => 'http://localhost/git/elfinder',
'tmbPath' => '../files/.dbtmb/',
'tmbURL' => dirname($_SERVER['PHP_SELF']) . '/../files/.dbtmb/',
// 'attributes' => array(
// array(),
// array(
// 'pattern' => '/\.jpg$/',
// 'read' => false,
// 'write' => false,
// 'locked' => true,
// 'hidden' => true
// )
// )
)
)
);
$connector = new elFinderConnector(new elFinder($opts), true);
$connector->run();
RE: elFinder 2.0 Beta
-
Added by Dmitry Levashov 10 months ago
You need to init every root in elfinder in separate options member
RE: elFinder 2.0 Beta
-
Added by simon watts 10 months ago
Hi Dmitry. Thanks for reply. Im bit confused and still having problems. I am not sure how to init every root in elfinder. Is there an sql dump so I could see how it looks from the database. I am really keen to get this working. Any help is greatly appreciated.
RE: elFinder 2.0 Beta
-
Added by ig mak 6 months ago
hi please help me with connecting elrte &elfinder 2.I have connection for elfinder 1.2 & elrte.I've changed elfinder1.2 files with elfinder 2.And in my page elfinder 2 works perfect but can't reach using elrte.
I have:
<link rel="stylesheet" href="../elrte/css/smoothness/jquery-ui-1.8.13.custom.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../elrte/css/elrte.min.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../elfinder2/css/elfinder.full.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../elfinder2/css/theme.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../elfinder2/css/jquery-ui.css" type="text/css" media="screen" charset="utf-8" />
<script src="../elfinder2/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../elfinder2/js/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../elrte/js/jquery-1.6.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../elrte/js/jquery-ui-1.8.13.custom.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../elrte/js/elrte.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../elrte/js/i18n/elrte.en.js" type="text/javascript" charset="utf-8"></script>
<script src="../elfinder2/js/elfinder.min.js" type="text/javascript" charset="utf-8"></script>
And wrote:
<script type="text/javascript" charset="utf-8">
$().ready(function() {
var elf = $('#elfinder').elfinder({
// lang: 'ru', // language (OPTIONAL)
url : '../elfinder2/php/connector.php' // connector URL (REQUIRED)
}).elfinder('instance');
var opts = {
//absoluteURLs: false,
cssClass : 'el-rte',
lang : 'en',
height : 420,
toolbar : 'maxi',
cssfiles : ['../elrte/css/elrte-inner.css'],
fmOpen : function(callback) {
$('<div id="elfinder" />').elfinder({
url : '../elfinder2/php/connector.php',
lang : 'en',
dialog : { width : 900, modal : true, title : 'elFinder - file manager for web' },
closeOnEditorCallback : true,
editorCallback : callback
})
}
}
$('#editor').elrte(opts);
})
</script>
I think mistake is here
Thanks
RE: elFinder 2.0 Beta
-
Added by Troex Nevelin 6 months ago
elFinder 2.x is different, see the docs https://github.com/Studio-42/elFinder/wiki/Integration-with-elRTE-1.x
RE: elFinder 2.0 Beta
-
Added by Jordi EnguĂdanos 6 months ago
Ohh.. good news. Anything about accents? I have some problems uploading files with accents and I know other people with the same problem.
Thanks for the work!
RE: elFinder 2.0 Beta
-
Added by Troex Nevelin 5 months ago
https://github.com/Studio-42/elFinder/blob/2.x/php/elFinderVolumeDriver.class.php#L213 see this connector option
(1-14/14)