diff --git a/src/components/create.vue b/src/components/create.vue index db9ded2..3bc87f4 100644 --- a/src/components/create.vue +++ b/src/components/create.vue @@ -116,6 +116,8 @@ const defaultExpiryChoices = [ 5 * 60, // 5 minutes ] +const internalMaxFileSize = 64 * 1024 * 1024 // 64 MiB + const passwordCharset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' const passwordLength = 20 @@ -146,7 +148,7 @@ export default { }, maxFileSizeExceeded() { - return this.$root.customize.maxAttachmentSizeTotal !== 0 && this.fileSize > this.$root.customize.maxAttachmentSizeTotal + return this.fileSize > internalMaxFileSize || this.$root.customize.maxAttachmentSizeTotal !== 0 && this.fileSize > this.$root.customize.maxAttachmentSizeTotal }, },