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

how to use the library to upload file? #221

Closed
jonny77 opened this issue Jun 27, 2016 · 1 comment
Closed

how to use the library to upload file? #221

jonny77 opened this issue Jun 27, 2016 · 1 comment

Comments

@jonny77
Copy link

jonny77 commented Jun 27, 2016

Array
(
[media] => CURLFile Object
(
[name] => /var/www/test/public/uploads/tmp_image/804766a60ab6bd006ca76fc68ac3e744.jpg
[mime] =>
[postname] =>
)

)

@rmccue
Copy link
Collaborator

rmccue commented Jun 9, 2017

Currently, you need to load the file's content as a string:

$content = file_get_contents( $filename );

#34 tracks the ability to use a file stream instead.

@rmccue rmccue closed this as completed Jun 9, 2017
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