- From: guest271314 <notifications@github.com>
- Date: Mon, 08 Apr 2019 12:22:09 -0700
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 8 April 2019 19:22:32 UTC
@andrew-aladev Note, technically, it is possible to set the `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-480971351
Received on Monday, 8 April 2019 19:22:32 UTC