Problem in the types of files allowed.

Added by ilyas kerbal 3 months ago

I want to know how to select the files allowed.
Thanks to everyone who answered.


Replies (4)

RE: Problem in the types of files allowed. - Added by Troex Nevelin 3 months ago

In elFinder 1.x you can only limit upload by certain file types, see the docs File upload

RE: Problem in the types of files allowed. - Added by ilyas kerbal 3 months ago

Method does not work.
Please give me the settings allow to upload image only.

tanks

RE: Problem in the types of files allowed. - Added by Troex Nevelin 3 months ago

Use these connector options:

        'uploadAllow'  => array('image'),
        'uploadDeny'   => array('all'),
        'uploadOrder'  => 'deny,allow',

This will allow only images to upload. If this will not work - than probably you have mimetype detect problem on your server, this can be fixed by setting:

'mimeDetect'   => 'internal',

(1-4/4)