Elfinder maxFileSize配置

时间:2016-03-10 11:17:18

标签: javascript php elfinder

我正在尝试在connector.php数组选项中配置elfinder maxfilesize选项,但我仍然收到此错误:

File exceeds maximum allowed size.

这是我在Connector.php中的配置:

$opts = array(
    // 'debug' => true,
    'roots' => array(
        array(
            'driver'        => 'LocalFileSystem',           // driver for accessing file system (REQUIRED)
            'path'          => '../files/',                 // path to files (REQUIRED)
            'URL'           => dirname($_SERVER['PHP_SELF']) . '/../files/', // URL to files (REQUIRED)
            'uploadDeny'    => array('all'),                // All Mimetypes not allowed to upload
            'uploadAllow'   => array('image', 'text/plain','application/vnd.ms-excel','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','application/x-rar-compressed, application/octet-stream','application/zip, application/octet-stream'),// Mimetype `image` and `text/plain` allowed to upload
            'uploadOrder'   => array('deny', 'allow'),      // allowed Mimetype `image` and `text/plain` only
            'accessControl' => 'access',                    // disable and hide dot starting files (OPTIONAL),
            'uploadMaxSize' => 1000000,
        )
    )
);

我该如何解决这个问题?

由于

0 个答案:

没有答案