jodit-connectors
jodit-connectors copied to clipboard
Image Upload Connector broken
Just used composer to install the php connector for image uploads, as the docs say. No errors during that at all. I haven't changed any configuration settings or touched anything. This server has php 7.2.15.
If I visit mysite.com/connector/index.php it spits out this:
'm/d/Y g:i A', 'quality' => 90, 'defaultPermission' => 0775, 'sources' => [ 'default' => [], ], 'createThumb' => true, 'thumbFolderName' => '_thumbs', 'excludeDirectoryNames' => ['.tmb', '.quarantine'], 'maxFileSize' => '8mb', 'allowCrossOrigin' => false, 'allowReplaceSourceFile' => true, 'baseurl' => ((isset($_SERVER['HTTPS']) and $_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . '/', 'root' => __DIR__, 'extensions' => ['jpg', 'png', 'gif', 'jpeg'], 'imageExtensions' => ['jpg', 'png', 'gif', 'jpeg'], 'debug' => JODIT_DEBUG, 'accessControl' => [] ]; $config['roleSessionVar'] = 'JoditUserRole'; $config['accessControl'][] = array( 'role' => '*', 'extensions' => '*', 'path' => '/', 'FILES' => true, 'FILE_MOVE' => true, 'FILE_UPLOAD' => true, 'FILE_UPLOAD_REMOTE' => true, 'FILE_REMOVE' => true, 'FILE_RENAME' => true, 'FOLDERS' => true, 'FOLDER_MOVE' => true, 'FOLDER_REMOVE' => true, 'FOLDER_RENAME' => true, 'IMAGE_RESIZE' => true, 'IMAGE_CROP' => true, ); $config['accessControl'][] = array( 'role' => '*', 'extensions' => 'exe,bat,com,sh,swf', 'FILE_MOVE' => false, 'FILE_UPLOAD' => false, 'FILE_UPLOAD_REMOTE' => false, 'FILE_RENAME' => false, ); return $config;{ "success": false, "time": "2019-02-20 19:36:49", "data": { "messages": [ "You need override
checkAuthenticationmethod in file
Application.php more https://github.com/xdan/jodit-connectors#configuration", "/var/www/html/boardgame/public/connector/Application.php - 23", "/var/www/html/boardgame/public/connector/index.php - checkAuthentication - 16" ], "code": 501 }, "eslapsedTime": 0.00023484230041503906 }
And if I try to use the upload function in Jodit this happens: