1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

Implement file upload (#2506)

This commit is contained in:
杨顺强
2018-11-14 10:55:11 +08:00
committed by Daniel Pan
parent dbbba4f93c
commit 360bd739ce
14 changed files with 701 additions and 23 deletions

View File

@@ -166,5 +166,10 @@ export const Utils = {
getFileName: function(filePath) {
let lastIndex = filePath.lastIndexOf('/');
return filePath.slice(lastIndex+1);
},
isSupportUploadFolder: function() {
return navigator.userAgent.indexOf('Firefox')!=-1 ||
navigator.userAgent.indexOf('Chrome') > -1;
}
};