forked from yogiben/meteor-autoform-file
-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update mode example #9
Comments
HI @aposidelov , Looks good to me. What should I do with it? |
just mark it as an example or link to it in the package description section where insert mode is described |
@aposidelov okay, now it's clear. |
dr-dimitru
added a commit
that referenced
this issue
Dec 16, 2016
Thank you for contribution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is an example how to implement autoform with update mode & upload field. Critical place is that autoform should be wrapped in {{#if Template.subscriptionsReady }} which makes sure that template level subscription is ready. Without it the picture preview won't be shown. Also to make upper {{#if}} to be worked the template level subscription should be used (this.subscribe instead of Meteor.subscribe)
EditProductForm.js
EditProductForm.html
and server-side code
The text was updated successfully, but these errors were encountered: