Skip to content

Commit

Permalink
Merge pull request #1497 from pierotofy/upfix
Browse files Browse the repository at this point in the history
Fix file size check on upload error retry
  • Loading branch information
pierotofy committed May 5, 2024
2 parents 04af329 + 06ccd29 commit b86411c
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 b86411c

Please sign in to comment.