Skip to content

Commit 58dfed2

Browse files
committed
Merge pull request mailru#119 from julesjanssen/patch-1
Update FileAPI.Form.js
2 parents 9f0e481 + f98db24 commit 58dfed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/FileAPI.Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
data.params.push(encodeURIComponent(file.name) + "=" + encodeURIComponent(file.blob));
114114
}
115115
data.start = -1;
116-
data.end = data.file.FileAPIReadPosition || -1;
116+
data.end = data.file ? (data.file.FileAPIReadPosition || -1) : -1;
117117
data.retry = 0;
118118
});
119119
},

0 commit comments

Comments
 (0)