Skip upload of unsupported files
This commit is contained in:
parent
cf3eda60f8
commit
2021f850c4
@ -58,6 +58,14 @@ upload = {
|
|||||||
var albumID = album.getID(),
|
var albumID = album.getID(),
|
||||||
process = function(files, file) {
|
process = function(files, file) {
|
||||||
|
|
||||||
|
if (file.supported===false) {
|
||||||
|
|
||||||
|
// Skip file
|
||||||
|
if (file.next!==null) process(files, file.next);
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
var formData = new FormData(),
|
var formData = new FormData(),
|
||||||
xhr = new XMLHttpRequest(),
|
xhr = new XMLHttpRequest(),
|
||||||
pre_progress = 0,
|
pre_progress = 0,
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user