Is it posible to create a read-only txt file using filesaver?
var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
saveAs(blob, "hello world.txt");
Is it posible to create a read-only txt file using filesaver?
No. Do not believe it is possible to create a read-only
Blob
using javascript
alone. File permission needs to be set at user filesystem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.