Not possible to store multiple fileReference object in same array?
Hi all,
I'm trying to store multiple fileReference object in one array. But everytime I push() in a new object the old objects that's already in the array gets set to the latest object.
I'm letting the user select an image. Then I push the selected fileReference object into an array like my_array.push( FileReference(event.target) );
If I then run a loop on "my_array" to check it's content I'm getting the latest pushed fileReference object for every index in the array.
With one object pushed in:
1. Image1.jpg
With two objects pushed in:
1. Image2.jpg
2. Image2.jpg
Anyone have any thoughts on this?
Thank you so much
