Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Apply next action using Controller::run instead of findActionAndApply
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 2, 2016
1 parent 6e2e40b commit 4a38d73
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -158,7 +158,10 @@ public function unifyChunks($action, &$httpVars, &$fileVars)
$fileVars["file"]["tmp_name"] = $target;
$fileVars["file"]["name"] = $filename;
$driver->storeFileToCopy($fileVars["file"]);
Controller::findActionAndApply("next_to_remote", array(), array());
$request = \Zend\Diactoros\ServerRequestFactory::fromGlobals();
$request = $request->withAttribute("action", "next_to_remote")->withParsedBody([]);
Controller::run($request);

}else{
// Remote Driver case: copy temp file to destination
$node = new AJXP_Node($destStreamURL.$filename);
Expand Down

0 comments on commit 4a38d73

Please sign in to comment.