Skip to content
Loading
Attach Multiple File and remove file from Attached file before upload 
  1. var upload_number = 2;  
  2. function addFileInput() {  
  3.     var d = document.createElement("div");  
  4.     var file = document.createElement("input");  
  5.     file.setAttribute("type", "file");  
  6.     file.setAttribute("name", "attachment"+upload_number);  
  7.     d.appendChild(file);  
  8.     document.getElementById("moreUploads").appendChild(d);  
  9.     upload_number++;  
  10. }  
0
  • Srinivasan Ramamoorthi
    Check this link https://makitweb.com/how-to-upload-multiple-image-files-with-jquery-ajax-and-php/amp/
    0