| Author |
File Handling and Javascript
|
S Mithal
Greenhorn
Joined: Mar 17, 2005
Posts: 19
|
|
I am trying to display some information about a file on my local directory in an html page using javascript. Is there a way to do so without using ActiveXObject objects as this solution is browser specific. I am using this for now: function getFileSize() { var fso = new ActiveXObject("Scripting.FileSystemObject"); fileObj = fso.GetFile("myFile"); return fileObj.Size; } TIA
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56180
|
|
|
No, for security reasons, native JavaScript has no access to the client file system. Thank goodness.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: File Handling and Javascript
|
|
|