File API .text() is not supported
Posted: 2021-06-06, 23:47
Using https://developer.mozilla.org/en-US/docs/Web/API/FileList
Specific function https://developer.mozilla.org/en-US/docs/Web/API/Blob/text
Working Draft: https://w3c.github.io/FileAPI/#dom-blob-text Is not supported.
While it is possible to use a file reader as an alternative, in some cases .text() is easier to work with, see function Usage notes.
Firefox 69 implementation bug #1557121, bug #1577311
This makes impossible for a website to read the uploaded data without storage, ej: web game reading imported save file, not using clipboard paste.
To reproduce you could use File List example and use .text() instead of .name under the alert.
Edit: Moved to Browser Development from Web Site compatibility since it is a more relevant board
Specific function https://developer.mozilla.org/en-US/docs/Web/API/Blob/text
Working Draft: https://w3c.github.io/FileAPI/#dom-blob-text
Code: Select all
domElem.files[i].text()
While it is possible to use a file reader as an alternative, in some cases .text() is easier to work with, see function Usage notes.
Firefox 69 implementation bug #1557121, bug #1577311
This makes impossible for a website to read the uploaded data without storage, ej: web game reading imported save file, not using clipboard paste.
To reproduce you could use File List example and use .text() instead of .name under the alert.
Edit: Moved to Browser Development from Web Site compatibility since it is a more relevant board