RR: closes #828 JS error on delete form in upload