Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tim-evans/bad434113914bdcdd5f8ab06d666b447 to your computer and use it in GitHub Desktop.
Save tim-evans/bad434113914bdcdd5f8ab06d666b447 to your computer and use it in GitHub Desktop.
File Upload Double Bug
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'File Upload',
actions: {
uploadAttachment() {},
uploadPinFile() {}
}
});
<h1>{{appName}}</h1>
{{#file-upload name="pin-file"
accept="*/*"
multiple=true
onfileadd=(action "uploadPinFile")}}
<p><i class="fa fa-upload"></i>Add an Pin.</p>
{{/file-upload}}
and
{{#file-upload name="post-attachment"
accept= '*/*'
multiple=false
onfileadd=(action "uploadAttachment")}}
<i class="fa fa-paperclip"></i>
{{/file-upload}}
{
"version": "0.13.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "2.16.3",
"ember-file-upload": "2.3.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment