How to load a file from a `<input type="file">` and put it into the element `rixxyplayerCode`?
I tried a StackOverflow link that shows how to read uploaded files and put it into a element, but seems like the code didn't work ( Some of that code are NOT FROM THE ANSWER ) . How to do it?
A working example
Woah, you use tabs!
No replacing 4 spaces with a tab anymoore!
Wait, NOT WORKING!!!
@RixTheTyrunt Make sure you open your project in a new tab, this deinitely works for text based files (.txt, .json, etc), if it's still not working let me know :)
@RixTheTyrunt If you've just copied and pasted the code block I posted that won't work, this is probably what you should do:
I already defined
document.getElementById("rixxyplayerCode")
in a variable namedcode
;DBut thank you very much!
This actually works...
@RixTheTyrunt No problem :)