Expand|Select|Wrap|Line Numbers
- <input type="file" name="upload" />
- <input type="text" name="discription" />
- <input type="image" onclick="addFile();" src="images/addfile.jpg" name="add" alt="Add file" />
But here is the problem, on that parent div there are children, children divs contains the input which displays it's file name and hidden div containing file path, and another hidden input containing the description. As user adds files, they keep getting added in a list fashion.
I plan to get process the values through array on the form submission. By the way there is only form on the parent div containing the child divs. not where the file input is.
What i want is that, i want to get the file path in javascript string as well as file name in another string. How can i go on about doing this.
Hope i was clear in explaining it.