Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i m trying to upload a file file using xmlhttprequest
when i write this code in my javascript

JavaScript
var filesToBeUploaded = document.getElementById("File1");

               var file = filesToBeUploaded.files[0];

it always shows files null
plz someone tell how can i upload my file using xmlhttprequest
Posted

1 solution

Please check here Sending File XmlHttpRequest[^]
 
Share this answer
 
Comments
Miss Maheshwari 11-Oct-13 4:53am    
Thank you very much

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900