FileCollection::list($path)); return $Response ->setData($data) ->setError($Messenger->getError()) ->setSuccess($Messenger->getSuccess()); } /** * Upload controller based on $_POST and $_FILES. * * @return Response the response object */ public static function upload(): Response { $Response = new Response(); Debug::log($_POST + $_FILES, 'file'); if (!empty($_FILES['file'])) { $Automad = Automad::fromCache(); $Messenger = new Messenger(); $chunk = (object) array_merge( array( 'dzchunkindex' => '', 'dzchunkbyteoffset' => '', 'dzchunksize' => 0, 'dztotalchunkcount' => 0, 'dzuuid' => '', 'tmp_name' => '', 'name' => '' ), $_FILES['file'] + $_POST ); FileCollection::upload( $chunk, FileSystem::getPathByPostUrl($Automad), $Messenger ); $Response->setError($Messenger->getError()); } return $Response; } } __halt_compiler();----SIGNATURE:----ePMYmffoUQTEkpQU2NIIZjKzqk3EBleB1yBcTZioh/zM8AJp1EwrOAs2ejJRSEO0iQvaQvupawQF66iG70FxO5SSEOKENKYR72MXpGpU22GpWmFfnScHtA9fXamtMZKkxHREFdZE9Sa0g5wvkDXaBF4ak/kXWbxY1R1YF3k0ABs4HcJnS1D8GPjkCtHCW0Od2L6ymuO3u8A6dppnAyygZVGMTOtguZtAunSbrk7lls+W5pFk7vtN6w9qHDODk6ROgBONwrehe2h1SaQIoBBTnV2O/wyYyTTuhqCSXP+UZxeCWL1Rav/uxCNV1QB2UXmmNAXWnQHLZIsoci3nbpDy3DcZHj5bgW3V4pkP2zMvEPtz5GPYgKgvJ/RuL89XzEMSaIrul0Ewy1pXxQnruME8HHf2H/10IueMxADNEmUT66kKPYYKIxnI5RMiYuIrgLorQQlSwyDf7gxN6c/O6Jx3GTNFYPN+L5WtNifPT2+21jViNqZaqde0cBX9ArQR2/Xbtw5vdWiVZA96EFQ1XVl+3BrkkjXtWXoGoUvX7Ge7HFrzwZk0/TA1W8OuJljlfz0yfyNGJUUL3GW1nNcJD+b5Vmlim2dOdjePicSFbpkpDojqkpjDzrac4B3kICK1Kx3vChpO6h8QTnJwp6/vIodmILLTabcn3NqAcH2kLHiLbZU=----ATTACHMENT:----NDY5MTY4NTk4NDE3MTMyOSA1NTczMzA3MjU2NzMxMDE3IDQ3NTA0NjI1NjE5NTE4Nw==