From 06ccd29d09b6d13167479256bfce382b5b4071bf Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 5 May 2024 15:12:39 -0400 Subject: [PATCH] Fix file size check on upload error retry --- app/static/app/js/components/ProjectListItem.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/app/js/components/ProjectListItem.jsx b/app/static/app/js/components/ProjectListItem.jsx index 84fc87a3..348ada94 100644 --- a/app/static/app/js/components/ProjectListItem.jsx +++ b/app/static/app/js/components/ProjectListItem.jsx @@ -219,7 +219,7 @@ class ProjectListItem extends React.Component { try{ if (file.status === "error"){ - if ((file.size / 1024) > this.dz.options.maxFilesize) { + if ((file.size / 1024 / 1024) > this.dz.options.maxFilesize) { // Delete from upload queue this.setUploadState({ totalCount: this.state.upload.totalCount - 1,