Cannot upload .js file to library | XM Community
Skip to main content
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?
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.
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