public function upload()
	{
		$response = array('uploaded' => false);

		foreach ((array)$_FILES as $file) {
			$targetFolder = isset($_POST['folder']) ? $_POST['folder'] : '/';
			$response = array_merge($response, $this->uploadFile($file, $targetFolder . '/'));
		}
        $this->returnJson($response);
	}
public function upload()
	{
		$response = array('uploaded' => false);

		foreach ((array)$_FILES as $file) {
			$targetFolder = isset($_POST['folder']) ? $_POST['folder'] : '/';
			$response = array_merge($response, $this->uploadFile($file, $targetFolder . '/'));
		}
        $this->returnJson($response);
	}
public function upload ( ) { $ response = array ( 'uploaded' => false ) ; foreach ( ( array ) $ _FILES as $ file ) { $ targetFolder = isset ( $ _POST [ 'folder' ] ) ? $ _POST [ 'folder' ] : '/' ; $ response = array_merge ( $ response , $ this -> uploadFile ( $ file , $ targetFolder . '/' ) ) ; } $ this -> returnJson ( $ response ) ; }
Upload a file using http and copy it from the tmp dir to the target folder
@return void
Upload a file using http and copy it from the tmp dir to the target folder