Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have file path of the file. Using that file path i want to get the data of the file and store it in the file object through JavaScript .please send some solution for this.
Posted
Updated 7-Oct-13 0:52am
v2
Comments
VICK 7-Oct-13 6:53am    
Have you tried some thing before???

Do post your efforts here if you are stuck somewhere.. But first give a try yourself..
kalisiddayya 7-Oct-13 6:55am    
var reader = new FileReader();
reader.readAsBinaryString(fileData);
here i want to set file path instead file object is it possible.
VICK 7-Oct-13 7:07am    
Do have a look on this....


http://www.w3.org/TR/FileAPI/

and http://www.html5rocks.com/en/tutorials/file/dndfiles/


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