1

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);
}
My Name
  • 285
  • 1
  • 4
  • 18
  • I found answer here : https://stackoverflow.com/questions/42361404/how-to-change-upload-path-in-froala-wysiwyg – My Name Feb 23 '17 at 08:21

1 Answers1

2

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

Community
  • 1
  • 1