6 $renderer = $DIC->ui()->renderer();
8 if (isset(
$_GET[
'example']) &&
$_GET[
'example'] == 4) {
10 echo json_encode([
'success' =>
false,
'message' =>
'Unable to store file on server']);
14 $uploadUrl =
$_SERVER[
'REQUEST_URI'] .
'&example=4';
15 $dropzone =
$factory->dropzone()->file()->standard($uploadUrl)
16 ->withMessage(
'Drag and drop your files here. Note that any upload will be failing!')
17 ->withUploadButton(
$factory->button()->standard(
'Upload',
''));
18 return $renderer->render($dropzone);
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']