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

Support for file resources in put, get etc. #14

Closed
ndobromirov opened this issue May 15, 2017 · 0 comments
Closed

Support for file resources in put, get etc. #14

ndobromirov opened this issue May 15, 2017 · 0 comments

Comments

@ndobromirov
Copy link
Contributor

It would be very nice to have the API for handling FTP files support both path to files as strings or already opened file handle resources.

In the underlying API this can be achieved with the ftp_fget and ftp_fput primitives.

Use case:
You have an opened PHP memory stream (or any other stream compatible library) and you are writing the data in it. In the end you want to send all that data to an FTP file.

Currently you will have to save it to a local file, push it to remote server, remove the local file.

With the new feature would be just, pass on the memory stream handle instead of a local path, sparing the overhead of writing and deleting the local files.

Any thoughts on this?

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