This is a migrated thread and some comments may be shown as answers.

[Solved] How to retrieve the file element being removed

0 Answers 67 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jean
Top achievements
Rank 1
Jean asked on 28 Nov 2012, 06:50 PM
Hi

Could you please let me know how to retrieve the exact t-file element that is being removed ?
I have extra parameters attached to the t-file element but I can't retrieve them because the parameter e does not give me a handle of the element being clicked on.

function onUploadRemove(e)
{
 var fileName = e.files[0].name;
}

The file name is not good enough because a user can upload two files with the same file name.
I also tried e.target but it contains  the whole upload control html element.

Thanks for your help
Tags
Upload
Asked by
Jean
Top achievements
Rank 1
Share this question
or