feat: add folder upload (#981)

* feat: folder upload
fix filebrowser/filebrowser#741

* fix: apply gofmt formater

* feat: upload button prompt

* feat: empty folder upload
This commit is contained in:
Ramires Viana
2020-06-16 16:56:44 -03:00
committed by GitHub
parent 6d899a6335
commit 89773447a5
7 changed files with 210 additions and 20 deletions

View File

@@ -10,7 +10,11 @@ export default {
name: 'upload-button',
methods: {
upload: function () {
document.getElementById('upload-input').click()
if (typeof(DataTransferItem.prototype.webkitGetAsEntry) !== 'undefined') {
this.$store.commit('showHover', 'upload')
} else {
document.getElementById('upload-input').click();
}
}
}
}