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

Make it easier to use stream wrappers for file/image/media attributes, or at least load them transparently from remote servers #102

Open
gggeek opened this issue Feb 28, 2017 · 1 comment
Milestone

Comments

@gggeek
Copy link
Member

gggeek commented Feb 28, 2017

See f.e. the sftp wrappers: http://php.net/manual/en/wrappers.ssh2.php.

  1. current code which deals with looking files up in 2 paths does not really play well with using something akin to ssh2.sftp://user:pwd@server:port/remote/file.txt as base path

  2. some stream wrappers need to inject the context in order for the fopen call to succeed (see: http://be2.php.net/manual/en/function.ssh2-sftp.php)

  3. even if the stream wrapper is properly set up on the side of the of the ComplexField, it probably won't work anyway unless the file is copied locally due to code in the eZ5 Field types. In which case we do have to take it upon ourselves to do that...

@gggeek gggeek changed the title Make it easier to use stream wrappers for file/image/media attributes, or at least load them from remote servers Make it easier to use stream wrappers for file/image/media attributes, or at least load them transparently from remote servers Feb 28, 2017
@gggeek
Copy link
Member Author

gggeek commented Jul 1, 2017

Note: in version 4 with the new 'file' Executor the above scenario might have already become possible or at least somewhat easier

@gggeek gggeek added this to the 4.1 milestone Jul 1, 2017
@gggeek gggeek modified the milestones: 5.8, 6.0 Dec 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant