private function doUpload($src, $originalName)
    {
        $data = $this->buildData($originalName, File::getExtension($originalName, false));
        file_put_contents($data['path'], base64_decode($src));

        $this->application->getEventDispatcher()->dispatch(
            ValidateFileUploadEvent::EVENT_NAME,
            new ValidateFileUploadEvent($data['path'])
        );

        return $data;
    }
private function doUpload($src, $originalName)
    {
        $data = $this->buildData($originalName, File::getExtension($originalName, false));
        file_put_contents($data['path'], base64_decode($src));

        $this->application->getEventDispatcher()->dispatch(
            ValidateFileUploadEvent::EVENT_NAME,
            new ValidateFileUploadEvent($data['path'])
        );

        return $data;
    }
private function doUpload ( $ src , $ originalName ) { $ data = $ this -> buildData ( $ originalName , File :: getExtension ( $ originalName , false ) ) ; file_put_contents ( $ data [ 'path' ] , base64_decode ( $ src ) ) ; $ this -> application -> getEventDispatcher ( ) -> dispatch ( ValidateFileUploadEvent :: EVENT_NAME , new ValidateFileUploadEvent ( $ data [ 'path' ] ) ) ; return $ data ; }
Upload file from a base64

@param String $src base64
@param String $originalName
@return Array $data
Upload file from a base64