javascript - URL is not showing all files select by user? -


I am working on phonegap where I need to upload files and add all file names to the parameter like: < / P>

For this, I am trying this:

  function new_page () {var file3 = document.getElementById ('my_file'); Var data_file = document.getElementById ('file_handle'). Internal HTML; If (file3! = Null) {var file = document.getElementById ('my_file'). InnerHTML; File + = data_file; Window.location.href = '? job_posting.html file = '+ file; } Else {window.location.href = 'job_posting.html'; }}   

When I upload more than one file it only creates a link with 1 file that I have selected:

Like:

but it should be

I will collect additional files as a JSON string on a URL as an additional array.

then use php json_decode

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -