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

post request support multi-file upload #327

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

jianminLee
Copy link

Just add a $files file path array parameter, the file array can be a two-dimensional array, upload file can also support complex array request parameter request.

example:

Requests::post($url,$header,['test' => ['a' => 'b','c' => [1,2,3 => ['cc' => ['vv' => [456,789,321]]]]]],[
        'paid_certificates' => [
            public_path('images/not_found.jpg'),
            public_path('images/abg.jpg'),
            public_path('images/bg.jpg'),
        ],
    ]);

@soulseekah
Copy link
Contributor

Related: #313

Let's make sure we have the same API, please.

@jrfnl jrfnl changed the base branch from stable to develop June 18, 2021 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants