Permalink
Browse files

Add getNative() method - a way to retrieve native window.File object.

  • Loading branch information...
1 parent fe32082 commit 46eefbf5e035858195fc7d9e6c962c005ee0abae @jayarjo jayarjo committed Apr 5, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/plupload.js
View
@@ -1715,6 +1715,11 @@ plupload.File = (function() {
* @see plupload
*/
status: 0,
+
+ getNative: function() {
+ var file = this.getSource().getSource();
+ return o.inArray(o.typeOf(file), ['blob', 'file']) !== -1 ? file : null;
+ },
getSource: function() {
if (!filepool[this.id]) {

0 comments on commit 46eefbf

Please sign in to comment.