Skip to content

Commit

Permalink
ENG-0000 fix(portal): fix file size message (#638)
Browse files Browse the repository at this point in the history
## Affected Packages

Apps

- [x] portal

Packages

- [ ] 1ui
- [ ] api
- [ ] protocol
- [ ] sdk

Tools

- [ ] tools

## Overview

Found a couple of file size messages/errors that still said 3MB instead
of 5MB

## Screen Captures

If applicable, add screenshots or screen captures of your changes.

## Declaration

- [x] I hereby declare that I have abided by the rules and regulations
as outlined in the
[CONTRIBUTING.md](https://github.com/0xIntuition/intuition-ts/blob/main/CONTRIBUTING.md)

Co-authored-by: Jonathan Prozzi <[email protected]>
  • Loading branch information
Vitalsine85 and jonathanprozzi authored Aug 15, 2024
1 parent c439e04 commit eea6dd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/portal/app/consts/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const DEFAULT_LIMIT = 10
// Form constants
export const MAX_NAME_LENGTH = 69
export const DESCRIPTION_MAX_LENGTH = 266
export const MAX_UPLOAD_SIZE = 1024 * 1024 * 5 // 3MB
export const MAX_UPLOAD_SIZE = 1024 * 1024 * 5 // 5MB
export const ACCEPTED_IMAGE_MIME_TYPES = [
'image/jpeg',
'image/jpg',
Expand Down
2 changes: 1 addition & 1 deletion apps/portal/app/lib/schemas/update-profile-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function updateProfileSchema() {
.instanceof(File)
.refine((file) => {
return file.size <= MAX_UPLOAD_SIZE
}, 'File size must be less than 3MB')
}, 'File size must be less than 5MB')
.refine((file) => {
return ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].includes(
file.type,
Expand Down

0 comments on commit eea6dd7

Please sign in to comment.