So I’m trying to make something where you can edit text files. The problem is sometimes I’m having problems in the user uploads a js file.
So lets say this is my file,
const myFile = new File([':)'], 'my-file.js');
my-file.txt. Please help!