Can’t open JS files in Windows from Filezilla

Windows is trying to execute your .js file instead of opening it in an Editor. This is not a programming problem. It’s a file association problem.

can't open JS files in Windows from Filezilla

If the javascript has references to the HTML doc object mannequin (DOM), then you’ll have issues operating it like it’s a VBScript. It’s because the script is designed to carry out operations on an HTML doc inside an internet browser.

I had the identical difficulty and glued it by doing the next in Filezilla:

1. Go to Edit > Settings
2. Go to the ‘File editing’ section
3. Under ‘Default Editor’: Ensure that Notepad++ is selected as your custom editor
4. Change the radio button from ‘Use filetype associations if available’ to ‘Always use default editor’

Filezilla