Browse Source

Skip upload of unsupported files

Tobias Reich 10 years ago
parent
commit
2021f850c4
2 changed files with 8 additions and 0 deletions
  1. 8 0
      assets/js/upload.js
  2. 0 0
      assets/min/main.js

+ 8 - 0
assets/js/upload.js

@@ -58,6 +58,14 @@ upload = {
 			var albumID = album.getID(),
 				process = function(files, file) {
 
+					if (file.supported===false) {
+
+						// Skip file
+						if (file.next!==null) process(files, file.next);
+						return false;
+
+					}
+
 					var formData = new FormData(),
 						xhr = new XMLHttpRequest(),
 						pre_progress = 0,

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff