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

FS image.url() is not return correct uri #63

Closed
radiegtya opened this issue Apr 28, 2016 · 1 comment
Closed

FS image.url() is not return correct uri #63

radiegtya opened this issue Apr 28, 2016 · 1 comment

Comments

@radiegtya
Copy link
Contributor

in my case whenever I fetch image.url() from collection FS, my url look like this, which not readable by react-native

http://localhost:3000/cfs/files/files/PmEazLruibjueMQpi?store=files&token=e…RoVG9rZW4iOiIwc2pSenl6dFRqeFc3d2JpTzhHNDB2Rk15UEV2QWZYMXBmeFlMNVBfWl9YIn0=

it is missing the file name, so I am hardcoding it like this to be able showing my image

const uri = file.url().substr(0, file.url().indexOf("?"))+"/"+file.name(); //add file.name() in the last url

so the correct image url will persist

http://localhost:3000/cfs/files/files/PmEazLruibjueMQpi/bg.png

Please fix this. Thanks

@Mokto
Copy link
Contributor

Mokto commented Apr 29, 2016

Available in 1.0.0-beta33. Thanks !

@Mokto Mokto closed this as completed Apr 29, 2016
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