Skip to content

Commit

Permalink
chore: upped file preview max size from 100mb to 400mb
Browse files Browse the repository at this point in the history
  • Loading branch information
uhrjun committed Jan 30, 2023
1 parent fd75938 commit 705fc05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/FileRender.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export default {
if (!isSupportedType) {
this.preview.error = 'Previews are not supported for this file type';
this.preview.loading = false;
} else if (this.previewEntity.size_in_bytes > 100 * 1024 * 1024) {
// Size limit = 100MB
} else if (this.previewEntity.size_in_bytes > 100 * 2048 * 2048) {
// Size limit = 400
this.preview.error = 'File is too large to preview';
this.preview.loading = false;
} else {
Expand Down

0 comments on commit 705fc05

Please sign in to comment.