Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to use in Meteor 1.3? #109

Open
thearabbit opened this issue May 26, 2016 · 1 comment
Open

How to use in Meteor 1.3? #109

thearabbit opened this issue May 26, 2016 · 1 comment

Comments

@thearabbit
Copy link

How to use in Meteor 1.3?
Could example?

@thearabbit
Copy link
Author

thearabbit commented May 26, 2016

I create Files, Pub, Security via doc in global variable.
I can upload photo in the form, but I can not get url to view photo in <img>

// imports/ui/pages
showTmpl.helpers({
    data () {
        let data = Item.findOne(this._id);
        data.photoUrl = null;
        if (data.photo) {
            data.photoUrl = Files.findOne(data.photo).url();
        }

        return data;
    }
});

// Show
undefined

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant