Добавил использование на клиенте настройки maxUploadFileSize

This commit is contained in:
Book Pauk
2019-02-13 17:58:44 +07:00
parent edece5e17f
commit 835f9374f6
3 changed files with 8 additions and 6 deletions

View File

@@ -168,6 +168,7 @@ class Reader extends Vue {
this.commit = this.$store.commit;
this.dispatch = this.$store.dispatch;
this.reader = this.$store.state.reader;
this.config = this.$store.state.config;
this.$root.addKeyHook(this.keyHook);
@@ -713,7 +714,7 @@ class Reader extends Vue {
progress.show();
progress.setState({state: 'upload'});
const url = await readerApi.uploadFile(opts.file, (state) => {
const url = await readerApi.uploadFile(opts.file, this.config.maxUploadFileSize, (state) => {
progress.setState(state);
});