Permalink
Browse files

Apply next action using Controller::run instead of findActionAndApply

  • Loading branch information...
1 parent 6e2e40b commit 4a38d738cba82cbc3968c32274179e263f35e7a7 @cdujeu cdujeu committed Jun 2, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 core/src/plugins/uploader.plupload/class.PluploadProcessor.php
@@ -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);

0 comments on commit 4a38d73

Please sign in to comment.