Can someone provide code examples or documentation on implementing a form with a file field using EmberJS and Ember Data?
I’m familiar with Ember Data already but I’m not sure how to implement file-uploads correctly.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is part of an ember-data adapter I wrote to do file uploads (same server -not cross domain)
It’s not IE8 friendly as is because I’m using the “FormData” helper to do multipart file upload but it’s a good proof of concept.
Here is the ember-data model to go w/ the above adapter
Here is the handlebars template
Here is the custom ember view
If you want to see a full blown spike with this in action checkout a multi file upload example I did recently.
https://github.com/toranb/ember-file-upload