client/posts: add custom thumbnail discarding

This commit is contained in:
rr-
2016-07-31 23:54:29 +02:00
parent 92d290b2a4
commit 9ee973ce1c
4 changed files with 25 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class Api extends events.EventTarget {
}
if (files) {
for (let key of Object.keys(files)) {
req.attach(key, files[key]);
req.attach(key, files[key] || new Blob());
}
}
if (this.userName && this.userPassword) {