Permalink
Browse files

Changed FormData to 'files'

  • Loading branch information...
1 parent 13ccfcb commit d7f13c7320b6d7191eea04b83f4ea1c8c0c8e3f7 @Wildhoney committed Jan 17, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 example/node-server/server.js
  2. +1 −1 packages/ember-droplet/ember-droplet-mixin.js
@@ -27,7 +27,7 @@ app.options('/upload', function(request, response) {
// Responsible for handling the file upload.
app.post('/upload', function(request, response) {
- var files = request.files.file,
+ var files = request.files.files,
promises = [];
/**
@@ -136,7 +136,7 @@
// Iterate over each file, and append it to the form data.
$ember.EnumerableUtils.forEach($ember.get(this, 'validFiles'), function(file) {
- formData.append('file', file.file);
+ formData.append('files', file.file);
}, this);
// Add any extra POST data specified in the controller

0 comments on commit d7f13c7

Please sign in to comment.