Re: [w3c/FileAPI] Readonly attributes without setters? (#126)

@andrew-aladev Note, technically, it is possible to mimic setting the actual `name` property of the `File` instance utilizing `FormData()`, `append()` and/or `set()` methods

```
var fd = new FormData();
var file = new File([1], "originalFileName.txt", {type:"text/plain"});
fd.append("fileName.txt", file);
console.log([...fd][0][1].name);
fd.set("fileName.txt", file, "newFileName.txt");
console.log([...fd][0][1].name);
```
plnkr https://plnkr.co/edit/xLqWR1?p=preview


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/126#issuecomment-480971012

Received on Monday, 8 April 2019 19:21:40 UTC