Only allow image upload in onlyoffice

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

View File

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