Commit Graph

150 Commits

Author SHA1 Message Date
nao-pon 1b6c78820b [api] add optional query (int)'substitute' to command dim
The connector can return the URL of the substitute image whose size will fit in that pixel as the value of the key 'url' of the result data when the 'substitute' parameter gives with `dim` command from the client.

Add the following two options on the client side config `commandsOptions.resize` to fixes #2251.

```javascript
// File size (bytes) threshold when using the `dim` command for obtain the image size necessary to start editing
getDimThreshold : 204800,
// File size (bytes) to request to get substitute image (400px) with the `dim` command
dimSubImgSize : 307200
```
2017-10-30 16:46:19 +09:00
Naoki Sawada 751a7fc3a9 [VD:LocalFileSystem] code briefly of 8038741556 2017-09-28 09:23:34 +09:00
arubalucalasagni 8038741556 False errors using the LocalFileSystem Driver and working with empty
files #2226
https://github.com/Studio-42/elFinder/issues/2226
2017-09-27 19:55:19 +02:00
nao-pon 01d1511c59 [VD:abstract] fix #2107 do clearstatcache() in abstract class 2017-08-03 17:24:41 +09:00
nao-pon 1cd6cf745e [VD] fix #2120 item copy between volumes is incomplete 2017-08-03 17:23:23 +09:00
nao-pon 5fcb8c7c9a [VD:LocalFileSystem] fix problem, directory name "0" is not detected in _subdirs() 2017-06-23 13:37:19 +09:00
nao-pon 70650d2f99 [VD:LocalFileSystem] prevent PHP timeout on _scandir() 2017-06-09 16:23:48 +09:00
nao-pon ee42f0689f [VD:abstract,LocalFileSystem] fix #2035 support multipart rar extraction 2017-06-02 15:45:04 +09:00
nao-pon ce49d6e937 [VD:LocalFileSystem] fix #2009 corrention of an option keepTimestamp(upload)
As for chunked `upload`, fixed time stamp was always keeps irrespective of setting, so we fixed it.
2017-05-16 22:20:30 +09:00
nao-pon cd5cc691e3 [VD:LocalFileSystem] make success the extract by excluding unallowed items 2017-03-27 17:14:00 +09:00
nao-pon eae1b712e3 [VD:LocalFileSystem] remove debug code 2017-02-24 23:54:41 +09:00
nao-pon 78c36ff2bf [VD:LocalFileSystem] fix #1910 startPath dose not work currently 2017-02-24 12:02:35 +09:00
nao-pon c9788461f3 [VD:LocalFileSystem] fix #1882 option copyJoin does not work on extract 2017-02-15 16:41:27 +09:00
nao-pon 1036ec6201 [VD:LocalFileSystem] fix problem in _subdirs() of unreadable dir 2017-02-15 12:16:19 +09:00
nao-pon a12ea6ec9f [VD:abstract,LocalFileSystem] fix #1744 results url must be urlencoded 2016-11-14 17:41:37 +09:00
nao-pon 7ef9cb8f84 [VD:LocalFileSystem] fix warning error 2016-08-04 17:49:05 +09:00
nao-pon db66281569 [VD:LocalFileSystem] fix #1565 dose not support volume option searchTimeout 2016-08-04 14:37:41 +09:00
nao-pon a626627201 [php] fix warning errors 2016-07-28 10:12:27 +09:00
nao-pon c166e9de58 [VD:abstract] fix #1553 root stat not refresh when do chmod of root 2016-07-27 11:24:59 +09:00
nao-pon f92f1be85c [php] fix CS ^ {4} to \t 2016-07-15 09:35:54 +09:00
nao-pon 9e150c828b [VD:LocalFileSystem] fix notice error of options['keepTimestamp']
for any extended driver
2016-07-13 22:02:09 +09:00
nao-pon b329043448 [VD:LocalFileSystem] fix mkdir quarantine that option has file path 2016-07-13 21:52:20 +09:00
nao-pon 1b4603e621 [VD:LocalFileSystem] fix warning error in localFileSystemInotify() 2016-07-06 21:05:57 +09:00
nao-pon 2e9f5b3f62 [VD:LocalFileSystem] fix #1494 support root path with drive letter 2016-06-29 09:20:38 +09:00
nao-pon 1b8df316df [VD:LocalFileSystem] fix warning error in localFileSystemInotify() 2016-05-29 20:31:33 +09:00
nao-pon e88048a205 [php] add PHP error handler and remove @ error-control operator 2016-05-13 17:13:31 +09:00
nao-pon f90ebb4b29 [VD:LocalFileSystem] fix #1370 implement function keep timestamp 2016-05-10 13:19:25 +09:00
nao-pon 2a2e441fc9 [VD:LocalFlieSystem] fix #1318 enbug@329593b46d5f36693236d349b06b55bd927b59c1 2016-04-11 10:07:54 +09:00
Dominik 8a1b37bf9e Revert 9959047 2016-04-08 09:02:02 +02:00
Dominik 9959047901 Fix archive size having leading 0 2016-04-06 15:40:33 +02:00
Dominik ada89885ac Add todos for missing return statements 2016-04-06 15:35:07 +02:00
Dominik 16641a68c1 Fix PHPDoc 2016-04-06 15:02:54 +02:00
nao-pon 33e24c4f0d [VD:LocalFileSyste] fix #1292 enbug @329593b46d5f36693236d349b06b55bd927b59c1 2016-03-29 21:25:15 +09:00
nao-pon 27ba0bb6df [VD:LocalFileSystem] add symbolic link check on _save() 2016-03-23 17:25:10 +09:00
nao-pon 16146ac1b8 [VD] fix #1266 exclusion serach (SQL, Dropbox are not supported now)
- volume root option `searchExDirReg` for excludes directores
```php
// Search exclusion directory regex pattern (require demiliter e.g. '#/path/to/exclude_directory#i')
'searchExDirReg'  => '',
```
- Excludes word in serach query with prefix "-" (e.g. "SerachWord -ExcludesWord")
2016-03-16 19:14:28 +09:00
nao-pon 3b16914d28 [VD:LocalFileSystem] fix #1240 search files it's still follow symlinks 2016-03-15 21:08:46 +09:00
nao-pon 329593b46d [ui] fix #1231 controllable folder icon, ref #1061
Case 1
------

**Grant the class name by the client setting**

```javascript
        uiOptions : {
            tree : {
                getClass: function(item) {
                    return 'elfinder-tree-' + item.name.replace(/[ "]/g,
'').toLowerCase();
                }
            }
            cwd : {
                getClass: function(item) {
                    return 'elfinder-cwd-' + item.name.replace(/[ "]/g,
'').toLowerCase();
                }
            }
        }
```

Case 2
------

**Specifying the file name to be detected as an icon**

**LocalFileSystem ONLY** If there is a ".diricon.png" in a directory it
with the directory icon.
```php
	'roots' => array(
        array(
            'driver'        => 'LocalFileSystem',
            'path'          => '/path/to/files/',
            'URL'           => 'http://localhost/to/files/',
            'detectDirIcon' => '.diricon.png'
        )
	)
```
2016-03-15 18:07:50 +09:00
nao-pon 07723de17b [VD:LocalFileSystem] fix #1243 Warning error by fclose() 2016-03-09 20:03:58 +09:00
nao-pon adbba7e2dd [php] use opendir() instead to scandir()
Reson is PHP function scandir() is not work well in specific
environment. I dont know why.

Maybe fixes #1241, fixes #1247, fixes #1248
2016-03-09 15:15:46 +09:00
nao-pon a09f94b1c9 [VD:LocalFileSystem] fix #1240 add config option followSymLinks
ref. https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options-2.1#localfilesystem
2016-03-03 22:21:21 +09:00
nao-pon 78452f3429 [php] session handling wrapper replaceable 2016-02-28 14:15:36 +09:00
nao-pon c0fda8074d [VD:LocalFileSystem] fix Fatal error of FilesystemIterator on PHP < 5.3 2016-02-28 14:13:09 +09:00
nao-pon a9358966ee [VD:LocalFileSystem] set fallback to $this->tmp of $this->quarantine 2016-02-22 23:10:06 +09:00
nao-pon 53d44eb095 [VD:LocalFileSystem] fix #1208 Fatal error on search with PHP<=5.3 2016-02-02 20:01:26 +09:00
nao-pon 7cb378ae61 [VD:LocalFileSystem] fix warning error 2016-01-28 00:50:16 +09:00
nao-pon 8e742ac31c fix #353 it can download files/folders as an archve file 2016-01-23 22:00:02 +09:00
nao-pon ff737052d1 [VD:LocalFileSystem,S3] fix some notice errors 2016-01-20 17:21:08 +09:00
nao-pon 516147caf6 [VD] main option commonTempPath to use
and fixes some notice errors
2016-01-20 17:09:57 +09:00
nao-pon 16ecb358b7 [php] call sesseion_write_close() if session restarted 2016-01-14 23:04:07 +09:00
nao-pon 62336390f4 [VD:LocalFileSystem] inotifywait target event create to close_write 2016-01-14 22:49:59 +09:00