Search code examples
froala

Froala editor not work uploader


I use Froala editor for upload

But in this line error :

'The Froala Editor SDK library requires the ' . $ext . ' extension.'

Code :

require_once 'editor/lib/FroalaEditor.php';

try {
    $response = FroalaEditor_Image::upload('/upload/');
    echo stripslashes(json_encode($response));
} catch (Exception $e) {
    http_response_code(404);
}

Solution

  • Please look at https://github.com/froala/wysiwyg-editor-php-sdk#dependencies You need to enable fileinfo extension in PHP.

    You can look here: Install fileinfo php extension