Closed znz closed 7 years ago
I met bug using multi file fields with remotipart. Example application is https://github.com/znz/upload-files-test .
I investigated the bug, markers.splice(i, 1); in markers.each makes iterating with [post_attachment, post_attachment2, post_attachment3], [post_attachment2, post_attachment3], [post_attachment2]. So I think splice should be after each.
markers.splice(i, 1);
markers.each
[post_attachment, post_attachment2, post_attachment3]
[post_attachment2, post_attachment3]
[post_attachment2]
splice
each
I met bug using multi file fields with remotipart. Example application is https://github.com/znz/upload-files-test .
I investigated the bug,
markers.splice(i, 1);
inmarkers.each
makes iterating with[post_attachment, post_attachment2, post_attachment3]
,[post_attachment2, post_attachment3]
,[post_attachment2]
. So I thinksplice
should be aftereach
.