Hi, there.
Well, I make 2 server (Front-End server / File server).
-
browser at post file to Front-End server with form. (is work)
// "getFile" is my custom function, it is using $this->request->getUploadedFiles() $params['file'] = $this->getFile('file'); // file data
-
Front-End server at post file to File server whit Guzzle.
self::$guzzle->post($url, [ 'multipart' => [ [ 'name' => 'file', 'filename' => $params['file']->getName(), 'contents' => fopen($params['file']->getTempName(), 'r'), ] ] ]);
- File server
$this->request->getUploadedFiles(); // empty $this->request->hasFiles(); // true $_FILES // file data (is same data to no.1)
So, I want get file data to $this->request->getUploadedFiles();
.
How can i get file data to $this->request->getUploadedFiles();
?
*Sorry about my EN skill is not good :(