blueimp/jQuery-File-Upload — Issue #981: Added rows to template cause error and delete issue
Author: mebrando
Created: 2012-02-02 02:24:17+00:00
State: open

I have added 2 rows to the end of the template.
Example:

{% if (file.error) { %}

Error {%=fileUploadErrors[file.error] || file.error%}

{% } else { %}

{% if (file.name) { %}{% } %}

{% } %}

Delete

NEW ROW WITH THE SAME CLASS

{%=o.formatFileSize(file.size)%}

NEW ROW WITH THE SAME CLASS

{%=file.title%}

Now I notice that when I upload an image I am left with two rows that show an error.
I can only image that the program is set to remove and refresh these rows after a file is uploaded, but it is only doing it to the first template-download row and not the next two.

Also, when an uploaded file is deleted the corresponding rows don't remove with it, just the first row.
Same here. I know the _deleteHandler has to do with this problem....and the context: button.closest('.template-download'),
It is looking for the closest template-download row witch belongs to the row that the button is in, and it is removed. However it still leaves behind the two rows beneath it of the size and the title.

Thanks in advance.