Add maxSizeAutoDownloads with default set to 10Mb
This commit is contained in:
parent
324ccd70b3
commit
db517fbd9c
9 changed files with 12 additions and 8 deletions
|
|
@ -39,7 +39,7 @@ export default {
|
|||
}
|
||||
if (event) {
|
||||
const fileSize = util.getFileSize(event);
|
||||
if (!userInitiated && (fileSize == 0 || fileSize > 1000000)) {
|
||||
if (!userInitiated && (fileSize == 0 || fileSize > this.$config.maxSizeAutoDownloads)) {
|
||||
this.userInitiatedDownloadsOnly = true;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue