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

Get object URL #2

Closed
modmanx opened this issue Feb 5, 2015 · 4 comments
Closed

Get object URL #2

modmanx opened this issue Feb 5, 2015 · 4 comments

Comments

@modmanx
Copy link

modmanx commented Feb 5, 2015

I tried to get a URL of a object, and I did not find any other way then making "getObject" method public and then call "$disk->getDriver()->getAdapter()->getObject('uploads/file.txt')->getUrl()"
Is there any other way, or implementing "getObjectUrl" method would be a good solution?

@actuallymab
Copy link

+1

@harikt
Copy link

harikt commented May 15, 2015

What I did was something like $container->getCdn()->getCdnUri() . '/' . $filename; . I am also interested to know alternatives.

@frankdejonge
Copy link
Member

The way to solve this would to add a plugin to this repository which is rackspace only. Since this is not something other adapters provide it can't be in the main Filesystem interface.

@frankdejonge
Copy link
Member

The container accessor has been added, resolving this issue as described above.

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

Successfully merging a pull request may close this issue.

4 participants