Elfinder: UTF8 encoded filename problem

Created on 27 Oct 2017  路  4Comments  路  Source: Studio-42/elFinder

Well, I searched about this problem here and some people said that's over, but not for me and my case is really interesting.
Elfinder is ok with files without accentuation but when I upload an PDF, for example, I can't open it from my main folder (/files).
404 NOT FOUND

Now you say: "_yeah, that's what everyone was saying_". But when I move that file to trash folder, I can open it!
Success
So that's not my browser, right?. Can somebody help me?

Chrome version: 61.0.3163.100 64bits
Apache version: 2.4.4
PHP version: 5.4.16

question

All 4 comments

@kaiqueg Please set connector roots options encoding and locale to fit to your server environment.

@nao-pon That's my configuration:

$def_uploadAllow = array('image', 'audio', 'video', 'text/plain', 'application/pdf', 'application/msword', 'application/excel', 'application/vnd.ms-excel', 'application/x-msexcel', 'application/x-excel', 'application/powerpoint', 'application/ms-powerpoint', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip');
$opts = array(
    'locale' => 'pt_BR.UTF-8',
    'roots' => array(
        array(
            'driver'        => 'LocalFileSystem',
            'alias'         => 'Arquivos',
            'path'          => '../files/',
            'URL'           => dirname($_SERVER['PHP_SELF']) . '/../files/',
            'trashHash'     => 't1_Lw',
            'winHashFix'    => DIRECTORY_SEPARATOR !== '/',
            'uploadDeny'    => array('all'),
            'uploadAllow'   => $def_uploadAllow,
            'uploadOrder'   => array('deny', 'allow'),
            'accessControl' => 'access'
        ),
        array(
            'id'            => '1',
            'driver'        => 'Trash',
            'alias'         => 'Lixeira',
            'path'          => '../files/.trash/',
            'tmbURL'        => dirname($_SERVER['PHP_SELF']) . '/../files/.trash/.tmb/',
            'winHashFix'    => DIRECTORY_SEPARATOR !== '/',
            'uploadDeny'    => array('all'),
            'uploadAllow'   => $def_uploadAllow,
            'uploadOrder'   => array('deny', 'allow'),
            'accessControl' => 'deny'
        )
    )
);

It's the same to both drivers, right? Why am I able to open my files in the trash and not the main root?
Don't worry too much, I already solved my problem using the Normalizer plugin. But I think this is a huge problem as other people may want to keep the original name of the files.

Volumes that have 'URL' set open files directly on the server whereas volumes that do not set 'URL' will open the file via elFinder's connector. In order to open the file directly on the server, you need to specify the volume encoding appropriately.

Now I understood! Thank you @nao-pon , I'll close this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aktolu picture aktolu  路  3Comments

mschlosser22 picture mschlosser22  路  4Comments

ramin-gitt picture ramin-gitt  路  3Comments

DaeMonSx picture DaeMonSx  路  4Comments

camgullo picture camgullo  路  3Comments