Skip to content

Commit

Permalink
uploader.addFile() should be able to add instances of plupload.File t…
Browse files Browse the repository at this point in the history
…oo. Close #756.
  • Loading branch information
jayarjo committed Apr 5, 2013
1 parent 46eefbf commit d0732bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plupload.js
Expand Up @@ -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) {
Expand Down

0 comments on commit d0732bd

Please sign in to comment.