-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d21c267
commit 5a32e27
Showing
17 changed files
with
149 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ Thumbs.db | |
/target/* | ||
classes/ | ||
._* | ||
/node_modules | ||
/node_modules | ||
*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="com.google.appengine.eclipse.core.GAE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="lib" path="war/WEB-INF/lib/commons-fileupload-1.3.jar"/> | ||
<classpathentry kind="con" path="com.google.appengine.eclipse.core.GAE_CONTAINER"/> | ||
<classpathentry kind="output" path="war/WEB-INF/classes"/> | ||
</classpath> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/**! | ||
* AngularJS file upload shim for angular XHR HTML5 browsers | ||
* @author Danial <[email protected]> | ||
* @version 1.2.9 | ||
* @version 1.2.10 | ||
*/ | ||
if (window.XMLHttpRequest) { | ||
if (window.FormData) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/**! | ||
* AngularJS file upload shim for HTML5 FormData | ||
* @author Danial <[email protected]> | ||
* @version 1.2.9 | ||
* @version 1.2.10 | ||
*/ | ||
(function() { | ||
|
||
|
@@ -45,13 +45,9 @@ if (window.XMLHttpRequest) { | |
xhr.__requestHeaders = []; | ||
xhr.open = (function(orig) { | ||
if (!xhr.upload) xhr.upload = {}; | ||
xhr.__listeners = []; | ||
xhr.upload.addEventListener = function(t, fn, b) { | ||
if (t === 'progress') { | ||
xhr.__progress = fn; | ||
} | ||
if (t === 'load') { | ||
xhr.__load = fn; | ||
} | ||
xhr.__listeners[t] = fn; | ||
}; | ||
return function(m, url, b) { | ||
orig.apply(xhr, [m, url, b]); | ||
|
@@ -93,7 +89,12 @@ if (window.XMLHttpRequest) { | |
var config = { | ||
url: xhr.__url, | ||
complete: function(err, fileApiXHR) { | ||
if (!err) xhr.__load({type: 'load', loaded: xhr.__total, total: xhr.__total, target: xhr, lengthComputable: true}); | ||
if (!err && xhr.__listeners['load']) | ||
xhr.__listeners['load']({type: 'load', loaded: xhr.__loaded, total: xhr.__total, target: xhr, lengthComputable: true}); | ||
if (!err && xhr.__listeners['loadend']) | ||
xhr.__listeners['loadend']({type: 'loadend', loaded: xhr.__loaded, total: xhr.__total, target: xhr, lengthComputable: true}); | ||
if (err === 'abort' && xhr.__listeners['abort']) | ||
xhr.__listeners['abort']({type: 'abort', loaded: xhr.__loaded, total: xhr.__total, target: xhr, lengthComputable: true}); | ||
if (fileApiXHR.status !== undefined) Object.defineProperty(xhr, 'status', {get: function() {return fileApiXHR.status}}); | ||
if (fileApiXHR.statusText !== undefined) Object.defineProperty(xhr, 'statusText', {get: function() {return fileApiXHR.statusText}}); | ||
Object.defineProperty(xhr, 'readyState', {get: function() {return 4}}); | ||
|
@@ -104,8 +105,9 @@ if (window.XMLHttpRequest) { | |
}, | ||
progress: function(e) { | ||
e.target = xhr; | ||
xhr.__progress(e); | ||
xhr.__listeners['progress'] && xhr.__listeners['progress'](e); | ||
xhr.__total = e.total; | ||
xhr.__loaded = e.loaded; | ||
}, | ||
headers: xhr.__requestHeaders | ||
} | ||
|
Oops, something went wrong.