Skip to content

Commit

Permalink
More upload retries, don't update totalCount on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed May 7, 2024
1 parent b86411c commit 5c663b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/static/app/js/components/ProjectListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class ProjectListItem extends React.Component {
.on("complete", (file) => {
// Retry
const retry = () => {
const MAX_RETRIES = 10;
const MAX_RETRIES = 20;

if (file.retries < MAX_RETRIES){
// Update progress
Expand Down Expand Up @@ -284,7 +284,6 @@ class ProjectListItem extends React.Component {
}else if (this.dz.getQueuedFiles() === 0){
// Done but didn't upload all?
this.setUploadState({
totalCount: this.state.upload.totalCount - remainingFilesCount,
uploading: false,
error: interpolate(_('%(count)s files cannot be uploaded. As a reminder, only images (.jpg, .tif, .png) and GCP files (.txt) can be uploaded. Try again.'), { count: remainingFilesCount })
});
Expand Down

0 comments on commit 5c663b8

Please sign in to comment.