I am trying to upload a list of files, the list can be dynamically increased size, so I chose jquery to read all input elements with type="file", when I console log the object console.log(elements[0].files[0]) it is printing the object correctly, but on assigning it to some other variable (or inserting into an object/formData) it is coming out to be null, I don't understand what I am missing. If anyone can help, thank you an advance:-))