php-proxy icon indicating copy to clipboard operation
php-proxy copied to clipboard

upload file proxy invalid

Open wuxue107 opened this issue 4 years ago • 2 comments

http://xxxx/aaa $request = ServerRequestFactory::fromGlobals(); $guzzle = new \GuzzleHttp\Client(); $proxy = new Proxy(new GuzzleAdapter($guzzle)); $response = $proxy->forward($request)->to('http://yyyy');

action code in http://yyyy/aaa var_dump($_GET,$_FILES);

curl -F "[email protected]" "http://xxxx/aaa?type=image" result:
array(1) { ["type"]=> string(5) "image" } array(0) { }

wuxue107 avatar Aug 17 '20 17:08 wuxue107

I have exactly the same issue - seems to be issue with the library. I've been reported from the backend api that file key is missing in the form data and for sure it is sent to proxy.

vukasin-nikodijevic avatar Sep 29 '20 12:09 vukasin-nikodijevic

I have exactly the same issue - seems to be issue with the library. I've been reported from the backend api that file key is missing in the form data and for sure it is sent to proxy.

an interim settlement

wuxue107 avatar Sep 29 '20 12:09 wuxue107