Permalink
Browse files

uploader.addFile() should be able to add instances of plupload.File t…

…oo. Close #756.
  • Loading branch information...
1 parent 46eefbf commit d0732bdd0d3e554816eea2c09dc24cc97fe8bb97 @jayarjo jayarjo committed Apr 5, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/plupload.js
View
@@ -1437,8 +1437,9 @@ plupload.Uploader = function(settings) {
var type = o.typeOf(file);
if (file instanceof o.Blob) {
- // final step for other condition branches
- files.push(file);
+ files.push(file); // final step for other condition branches
+ } else if (file instanceof plupload.File) {
+ files.push(file.getSource());
} else if (type === 'file') {
// this process is asyncronous, so we queue it to be handled in series
queue.push(function(cb) {

0 comments on commit d0732bd

Please sign in to comment.