# Need data field of file list

**URL:** <https://forum.kirupa.com/t/need-data-field-of-file-list/256174>\
**Category:** Uncategorized\
**Created:** [March 31, 2008, 4:53pm UTC](https://forum.kirupa.com/t/need-data-field-of-file-list/256174 "2008-03-31T16:53:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [March 31, 2008, 4:53pm UTC](https://forum.kirupa.com/t/need-data-field-of-file-list/256174/1 "2008-03-31T16:53:28Z")

</div>

I cant seem to trace out the data field of my list component.

Here is what I have adding to my file list:

```auto
filelist.addItem({label: file.name+" - "+(Math.round((file.size/1024)))+" KB", data: selectedFileArray*});

```

and now I want to trace the datafield so I did

```auto
var uploadWhat = filelist[currentIndex].data;
    trace(uploadWhat);

```

I get this error:

```auto
ReferenceError: Error #1069: Property 0 not found on fl.controls.List and there is no default value.
    at uploaderas3_fla::MainTimeline/startUpload()

```
