Reorganize usage of getAsFile()
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
41bf7cc52f
commit
6219962892
1 changed files with 5 additions and 2 deletions
|
@ -370,8 +370,11 @@
|
||||||
if (this.isFileAllowed(item)) {
|
if (this.isFileAllowed(item)) {
|
||||||
result = true;
|
result = true;
|
||||||
var id = ID();
|
var id = ID();
|
||||||
this.onFileInserted(item.getAsFile(), id);
|
var file = item.getAsFile();
|
||||||
this.uploadFile(item.getAsFile(), id);
|
if (file !== null) {
|
||||||
|
this.onFileInserted(file, id);
|
||||||
|
this.uploadFile(file, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue