feat(client): Implement default upload folder setting

Resolve #5985
This commit is contained in:
syuilo
2020-04-22 00:34:56 +09:00
parent e72011f1da
commit 1f998168e2
11 changed files with 140 additions and 208 deletions

View File

@ -58,6 +58,9 @@ export default Vue.extend({
const data = new FormData();
data.append('file', blob);
data.append('i', this.$store.state.i.token);
if (this.$store.state.settings.uploadFolder) {
data.append('folderId', this.$store.state.settings.uploadFolder);
}
fetch(apiUrl + '/drive/files/create', {
method: 'POST',