I wanna do some thing like this: 1 - user insert a name 2 - after that i create a file white the user inserted name, and save file in user drive, like c drive. i need to do this using java script, but i have no idea about it, i saw some example about filesystem in Html5, but this approach, at the final, make u download the file, but i want to save this in a specified place by my self. can u give me some guide or some document about this filed? foe example i try this: http://www.noupe.com/design/html5-filesystem-api-create-files-store-locally-using-javascript-webkit.html but because i can't understood it.
2 Answers
You can't access a user's file system. The best you can do is use localStorage for normal browsers or cookies.
7 Comments
123
u know, in my own, i accepted ur words and i believe them, but i was talking to my proff and he mentioned this, and told me u can create a file like this, and in this way, but he simply don't explain it.
php_nub_qq
@123 No, you can't. If you could then the web would be a complete anarchy (not that it kind of isn't already).
dandavis
you can download files from JS, you just can't specify the folder they are created in.
123
@dandavis yes, js let u create a temp file and give it to user, and then user must download the file.
Jon Holland
perhaps your prog was meaning cookies? just a thought. Thank goodness JS cannot just write files to our system willy-nilly.
|
OK, OK OK, tnk every body who came here and put there time to answer my question. finally after a week, yesterday, i went to have some talk with my professor, and he smiled at me, and say u can't find it, bcz js don't have this access and i just need to see my student research about some thing, some thing with false answer.
C:? What if someone decides to create a 100GB file in yourC:?