Skip to content

Commit

Permalink
Implement inner max filesize to 64MiB
Browse files Browse the repository at this point in the history
64 MiB attachment succeeded, 70 MiB broke

Signed-off-by: Knut Ahlers <[email protected]>
  • Loading branch information
Luzifer committed Oct 1, 2023
1 parent 2c78df7 commit e7ddd7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ const defaultExpiryChoices = [
5 * 60, // 5 minutes
]
const internalMaxFileSize = 64 * 1024 * 1024 // 64 MiB
const passwordCharset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
const passwordLength = 20
Expand Down Expand Up @@ -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
},
},
Expand Down

0 comments on commit e7ddd7a

Please sign in to comment.