Uploading multiple files fails

When trying to upload 10 files an error message occurs

Console shows this:

[Uppy] [17:11:51] Failed to upload cce616b640fc4352250416f7f403a35813826092.jpeg Upload error chunk.660.cfa44cc656d26c5d04fa.js:2:209371
    error chunk.660.cfa44cc656d26c5d04fa.js:2
    log chunk.660.cfa44cc656d26c5d04fa.js:2
    ee chunk.660.cfa44cc656d26c5d04fa.js:2
    se chunk.660.cfa44cc656d26c5d04fa.js:2
    emit chunk.660.cfa44cc656d26c5d04fa.js:2
    emit chunk.660.cfa44cc656d26c5d04fa.js:2
    emit chunk.660.cfa44cc656d26c5d04fa.js:2
    upload chunk.660.cfa44cc656d26c5d04fa.js:2
    (Async: EventListener.handleEvent)
    upload chunk.660.cfa44cc656d26c5d04fa.js:2
    upload chunk.660.cfa44cc656d26c5d04fa.js:2
    uploadFiles chunk.660.cfa44cc656d26c5d04fa.js:2
    uploadFiles chunk.660.cfa44cc656d26c5d04fa.js:2
    handleUpload chunk.660.cfa44cc656d26c5d04fa.js:2
    ce chunk.660.cfa44cc656d26c5d04fa.js:2
    upload chunk.660.cfa44cc656d26c5d04fa.js:2
    (Async: promise callback)
    upload chunk.660.cfa44cc656d26c5d04fa.js:2
    scheduledAutoProceed chunk.660.cfa44cc656d26c5d04fa.js:2
    (Async: setTimeout handler)
    oe chunk.660.cfa44cc656d26c5d04fa.js:2
    addFiles chunk.660.cfa44cc656d26c5d04fa.js:2
    _addFiles composer-upload-uppy.js:444
    _run index.ts:665
    _join index.ts:640
    join index.ts:362
    Ember 2
    i uploads.js:266
    i uploads.js:265

Sitesetting simultaneous uploads is 10.


Hey Richard,
Is there anything particular regarding your files? When trying to upload 10 pictures with simultaneous uploads set to 10, I encounter no issue. I’m on the latest Discourse version.

Nothing special, random files, I can repro on multiple systems hosted in different places.
Maybe it’s Firefox… :thinking:

EDIT No I can repro on Chrome as well

1 Like

Thanks for reporting Richard; this is a tricky one to debug at times. Can you please enable the site setting enable_upload_debug_mode, and hopefully you will get a more detailed error message, and if not if you go to /logs on the site it should show a more detailed message.

I know the UX around this is not ideal either. Currently you can upload 10 files and 3 might fail, but we only show the generic dialog and “that file”. At the very least I can see if I can change that dialog to at least show the file name.


Thanks Martin. I enabled debugging and digged deeper. I previously overlooked a 503 error that is now showing more clearly.

That 503 error is in UploadsController.create and seems to happen when hijack is called. I don’t have much experience with hijack unfortunately.

I have been able to reproduce this on a standard install to rule out any Communiteq specific issues:


Is there any news here? Has anyone been able to reproduce the bug on their instance as well?

Seeing the same problem here after upgrading to 3.x. Often with anything over 10 files it will cause random files in the batch to error out. DO droplet configured with spaces for uploads. No problems with 2.x and a fairly image intensive forum.