Skip to content

Instantly share code, notes, and snippets.

@Parrryy
Created March 21, 2018 08:30
Show Gist options
  • Save Parrryy/7ea3f183238f6c45528686ba7e36503e to your computer and use it in GitHub Desktop.
Save Parrryy/7ea3f183238f6c45528686ba7e36503e 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'
});
<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-file-upload": "2.2.6",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "2.16.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment