![]() ![]() OFReader.readAsDataURL(document.getElementById("uploadText").files) ĭocument.getElementById("uploadTextValue").value = ĭocument.getElementById("obj").data = Other example - my reader with FileReader class Related: As of September 2020 the new Native File System API available in Chrome and Edge in case you want permanent read-access (and even write access) to the user-selected file. Let text = await (new Response(file)).text() Here's a working jsbin demo.Ĭurrently (January 2020) this only works in Chrome and Firefox, check here for compatibility if you're reading this in the future: When user uploads a text file via that input, it will be logged to the console. Use fileOrBlob.text() as follows: console.log(t))">
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |