Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload file proxy invalid #81

Open
wuxue107 opened this issue Aug 17, 2020 · 2 comments
Open

upload file proxy invalid #81

wuxue107 opened this issue Aug 17, 2020 · 2 comments

Comments

@wuxue107
Copy link

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) {
}

@vukasin-nikodijevic
Copy link

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.

@wuxue107
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants