Skip to content

Commit

Permalink
Fix file size check on upload error retry
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed May 5, 2024
1 parent 04af329 commit 06ccd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/static/app/js/components/ProjectListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 06ccd29

Please sign in to comment.