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

can upload file #277

Closed
tomclassplus opened this issue May 24, 2017 · 2 comments
Closed

can upload file #277

tomclassplus opened this issue May 24, 2017 · 2 comments

Comments

@tomclassplus
Copy link

how to upload a file

@rmccue
Copy link
Collaborator

rmccue commented Jun 9, 2017

Currently, you need to read the file in as a string and set it as the $data parameter:

Requests::post( $url, $headers, file_get_contents( $filename ) );

#34 tracks the ability to do this directly.

@rmccue rmccue closed this as completed Jun 9, 2017
@mouday
Copy link

mouday commented Aug 9, 2021

sorry . hava any full code exmaple ? my short code is not work.

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

3 participants