Skip to content

Commit

Permalink
Increment file size bytes limit
Browse files Browse the repository at this point in the history
  • Loading branch information
WalissonPires committed Mar 12, 2024
1 parent 47e54a4 commit 17241a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MessageEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export function MessageEditor({ value, onChange }: MessageEditorProps) {
return;

const medias = [ ...value.medias ];
const oneMegabyte = 1024 * 1024 * 2;
const oneMegabyte = 1024 * 1024 * 20;

for(const file of files) {

if (file.size > oneMegabyte) {
AppToast.warning('Tamanho máximo permitido: 2 MB');
AppToast.warning('Tamanho máximo permitido: 20 MB');
return;
}

Expand Down

0 comments on commit 17241a1

Please sign in to comment.