Frage

There were already a few questions like this, but the answers seemed to reference removing everything via the reset method.

What is the best way to remove a file entry from the file list? I am already handling the 'complete' event, and would like to remove the one specific file entry once it is successfully uploaded.

The reason for this is that I am using Fine Uploader in conjunction with another component that actually displays the uploaded files, however we want to use the power of Fine Uploader for all of the uploading and other advantageous features.

War es hilfreich?

Lösung

Have you tried using the getItemByFileId method to get a handle on the file container in the UI?

callbacks: {
    onComplete: function(id) {
        qq(this.getItemByFileId(id)).remove();
    }
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top