Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.
This repository was archived by the owner on May 25, 2023. It is now read-only.

Image Processing Failing periodically on 2nd or later image in Firefox 18.0.1 on Ubuntu #2069

@scyclops

Description

@scyclops

I kept running into a problem where uploading a 2nd or later image periodically caused the upload to fail. By inserting lots of logging statements I tracked it down to the process method in jquery.fileupload-fp.js

My fix was to insert the below line at the very beginning of the process method.

this._processingQueue = $.Deferred().resolveWith(this).promise();

It seems the Deferred needs to be recreated every time the processing is run because once the Deferred is used it can't be reused (or at least that's my theory). It doesn't seem to fully explain why the failures were periodic (around 30% of the time the 2nd or 3rd image failed to upload). I'm also using the autoUpload: true option.

I only noticed this issue in Firefox on Ubuntu but I haven't rigorously tested to see if it occurs more widely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions