Cannot upload .js file to library | XM Community
Solved

Cannot upload .js file to library

  • 28 December 2018
  • 4 replies
  • 31 views

Badge +5
Hello there,
I have been trying to upload a .js file to my Files Library but I have been receiving a "The file you have uploaded is a disallowed file type" error. I can't find any other information or reference to this error. I have experimented with various permission levels by user type and group type, but that does not seem to work.

Does anyone know if file types are gated by account level? Or is not possible to upload .js files?
icon

Best answer by fleb 2 January 2019, 20:29

View original

4 replies

Userlevel 5
Badge +6
Hi,
I don't know how exactly this works, but I had the same problem even with a paid account. I just uploaded the same file without the suffix and was still able to use my functions which were inside.
Badge +5
Thanks, @fleb ! That did the trick.
Hello @rsuter ,

Alternate way is to first upload normal text file and then in the edit option of the uploaded text file upload the JS file
I'm not able to make this work. Choose new file throws a console error "Error: Mismatched File types: text/html".

Edit: Just leaving the file as a .txt seems fine.

Leave a Reply