private static function FlmngrServer::reqFileDelete in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
1 call to FlmngrServer::reqFileDelete()
- FlmngrServer::flmngrRequest in vendor/
edsdk/ flmngr-server-php/ src/ FlmngrServer.php
File
- vendor/
edsdk/ flmngr-server-php/ src/ FlmngrServer.php, line 209
Class
Namespace
EdSDK\FlmngrServerCode
private static function reqFileDelete($config) {
$files = $_POST['fs'];
$filesPaths = preg_split("/\\|/", $files);
try {
$fileSystem = new FMDiskFileSystem($config);
$fileSystem
->deleteFiles($filesPaths);
return new Response(NULL, TRUE);
} catch (MessageException $e) {
return new Response($e
->getFailMessage(), NULL);
}
}