Fix file size check on upload error retry

pull/1497/head
Piero Toffanin 2024-05-05 15:12:39 -04:00
rodzic 04af329f78
commit 06ccd29d09
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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,