uppy icon indicating copy to clipboard operation
uppy copied to clipboard

`Complete` event is not fired if one or more files are removed before they are uploaded using XHRUpload

Open Eleana92 opened this issue 7 months ago • 3 comments

Initial checklist

  • [X] I understand this is a bug report and questions should be posted in the Community Forum
  • [X] I searched issues and couldn’t find anything (or linked relevant results below)

Link to runnable example

No response

Steps to reproduce

Try to upload a large amount of files and remove one or more files from the end of the queue that have not been uploaded yet.

    const uppy = Uppy(
        {
            autoProceed: true,
            debug: true
        }
    ).use(Dashboard,
        {
            inline: true,
            target: '#uppy',
            hideUploadButton: true,
            hideRetryButton: true,
            hidePauseResumeButton: true,
            hideCancelButton: true,
            proudlyDisplayPoweredByUppy: false,
            disableThumbnailGenerator: true,
            showRemoveButtonAfterComplete: true
        })
        .use(XHRUpload, {
            endpoint: 'https://your-domain.com/upload',
            fieldName: 'file'
        });

    uppy.on('complete', (result) => {
        console.log('complete');
        console.log('successful files:', result.successful);
        console.log('failed files:', result.failed);
    });

Expected behavior

The complete event should be fired after the remaining files have been uploaded.

Actual behavior

The complete event is not called in this case, although the upload is normally executed and there is feedback that it is successfully complete in the UI. dashboard If one or more files are removed AFTER they have been uploaded, the event is executed as expected.

Eleana92 avatar Jul 24 '24 08:07 Eleana92