开发者

can we rename/write to local files in HTML5 [duplicate]

开发者 https://www.devze.com 2023-03-31 06:47 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Modifying Local Files Using HTML5 and JavaScript
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Modifying Local Files Using HTML5 and JavaScript

I know we can read a local file that has been selected by the user, but is ther开发者_高级运维e the ability to rename or write to local files in javascript?


There is no way to natively write the filesystem in Javascript, for obvious security reasons.

However, if you must, there is an ActiveX object (Only in IE). It's Scripting.FileSystemObject.

You will find the documentation about that beast on the msdn site.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号