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

Payload validation #35

Open
alex10fan opened this issue Jun 13, 2016 · 1 comment
Open

Payload validation #35

alex10fan opened this issue Jun 13, 2016 · 1 comment

Comments

@alex10fan
Copy link

CURLOPT_POSTFIELDS by default accepts strings and flat (1-dimensional) arrays.

Update payload validation of Curl->sendRequest method to allow arrays or let user to set payload manually using curl options (do not set payload if it is empty).

Without that it's impossible to post files.

$payload['file'] = new \CURLFile($file, $mimeType);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);

@TobiasHauck
Copy link
Member

Hey,
thanks for reporting and sorry for being so late :S

There's another issue about file upload #36, so I think these issues are related to each other. Would you mind to find a solution? Maybe you can have a short chat with the other dev having the same problem, so you won't do the same in parallel.

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