Upload non-assets files


#1

Hi! Is it possible to upload files (scripts, stylesheets, etc) to glitch, aside from assets?


#2

You have 2 ways to do so.

  1. Make a new file with the exact name as the file you want to copy, for example: awesome.js
    then copy the whole code into the new file.
  2. Upload your file to github and add it through clicking the project’s name on the top left side, then clicking advanced options on the showed-up menu, if you don’t have access yet, click grant access, and go back there again and click import from github.

#3

You can also upload using wget or a similar command from the console.

Note that in goldensaur’s first suggestion, there are copy and paste size limits - so if you get an error on paste, that’s why - see https://glitch.com/faq#restrictions