Skip to content

Commit

Permalink
🔧 Increase file size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 20, 2023
1 parent 01db134 commit ad87df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/IscnUploadForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ import exifr from 'exifr'
import Hash from 'ipfs-only-hash'
import { Vue, Component, Prop } from 'vue-property-decorator'
import { logTrackerEvent } from '~/utils/logger'
import { IS_CHAIN_UPGRADING } from '~/constant'
import { IS_CHAIN_UPGRADING, UPLOAD_FILESIZE_MAX } from '~/constant'
import {
fileToArrayBuffer,
Expand Down Expand Up @@ -224,7 +224,7 @@ export default class UploadForm extends Vue {
if (files && files[0]) {
const reader = new FileReader()
if (files[0].size < 30000000) {
if (files[0].size < UPLOAD_FILESIZE_MAX) {
this.fileName = files[0].name
this.fileSize = files[0].size
this.fileType = `${files[0].type}`
Expand Down
2 changes: 2 additions & 0 deletions constant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,6 @@ export const LIKECOIN_CHAIN_STAKING_ENDPOINT = IS_TESTNET
? 'https://likecoin-public-testnet-5.netlify.app/validators'
: 'https://dao.like.co/validators';

export const UPLOAD_FILESIZE_MAX = 100000000; // 100MB


0 comments on commit ad87df5

Please sign in to comment.