Permalink
Browse files

Attempt at fixing file uploads

  • Loading branch information...
1 parent 064665a commit cef72f83d9ab43b1d861d2bde68d335b9b2f31c6 @bytespider committed Sep 4, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +1 −1 Version
  3. +1 −1 src/OAuth/Consumer.js
View
@@ -20,9 +20,9 @@ If you need more help or discussion, try the [Google jsOAuth Group](https://grou
## Usage
-Download the [minified library](https://github.com/downloads/bytespider/jsOAuth/jsOAuth-1.3.5.min.js) and include it in your html.
+Download the [minified library](https://github.com/downloads/bytespider/jsOAuth/jsOAuth-1.3.6.min.js) and include it in your html.
- <script type="text/javascript" src="library/jsOAuth-1.3.5.min.js"></script>
+ <script type="text/javascript" src="library/jsOAuth-1.3.6.min.js"></script>
This gives you a global OAuth object for you to set up and make requests with.
Setting it up is simple.
View
@@ -1 +1 @@
-1.3.5
+1.3.6
View
@@ -105,7 +105,7 @@
for(var name in data) {
// Thanks to the FileAPI any file entry
// has a fileName property
- if(typeof data[name].fileName != 'undefined') hasFile = true;
+ if(data[name] instanceof File || typeof data[name].fileName != 'undefined') hasFile = true;
}
return hasFile;

0 comments on commit cef72f8

Please sign in to comment.