Only allow image upload in onlyoffice

This commit is contained in:
yflory committed 2020-01-22 17:15:37 +01:00
1 parent 6fd079bfb0
commit cdbe4ed8eb
2 files changed
+15 -1

No files matched your search

+5 -1
View File
@@ -831,7 +831,11 @@ define([
APP.AddImageErrorCallback = cb2;
common.openFilePicker({
types: ['file'],
where: ['root']
where: ['root'],
filter: {
fileType: ['image/']
}
});
};