Students can upload images and other files from their computers to add to their programs in the Code Editor. Uploading a .zip file will unzip and add all files to the program. Note: the file size limit is roughly 3 megabytes.
Uploading a File
From the Code Editor, click More > Upload.
Browse for the file you would like to upload > Open
Copy and paste the URL to use in your program
Accepted Image types:
APNG (.apng)
BMP (.bmp)
GIF (.gif)
ICO (.ico)
CUR (.cur)
JPG (.jpg)
JFIF (.jfif)
JPEG (.jpeg)
PDF (.pdf)
PJPEG (.pjpeg)
PJP (.pjp)
PNG (.png)
SVG (.svg)
TIF (.tif)
TIFF (.tiff)
WEBP (.webp)
Uploading an Audio File
MP3 files may also be added and used in programs in the Code Editor.
Uploading a PDF File
To upload a PDF to your program:
Navigate to the More tab, located on the right side of the IDE
Select Upload from the drop-down menu > click Upload File
Locate your PDF on your computer (the file will be temporarily grayed out or unavailable)
Click Show Options, located at the bottom of the pop-up modal
Change the Format field from Custom Files to All Files > Click Open to upload your PDF
Uploading a file in Multi-File Programs
Some program types on CodeHS, such as Java and HTML, allow you to create multiple files for your program. Note: Multi-file programs are not supported with all assignment types.
Click New > Upload File
Drag and Drop the file or choose Browse
Open > Add File
The uploaded file will be added to the file tree in your Code Editor. If uploading an image file, you can copy and paste the URL to use in your program. Learn more about Creating & Managing Multi-file Programs.
List of Uploaded Files
To see a list of every file that's been uploaded to your account and its URL:
Go to Account Settings > Code History
Under File Uploads, click My Uploads
Still have questions? Contact our team at hello@codehs.com to learn more!