File requirements
The number of files and maximum file size you can attach depends on your plan.Supported file types
Bolt supports the following formats for each type of attachment.You can upload file formats for a wide range of coding languages, but Bolt only builds JavaScript-based applications. Use files from other coding languages as a reference to guide Bolt, or ask Bolt to convert them into JavaScript.
Attach a file from the chatbox
You can attach files when creating a new project on the Bolt homepage or in an existing project. To attach a file, do one of the following:- In the bottom-left corner of the chatbox, click the plus icon, then click Attach file and select your files.
- Drag and drop the files into the chatbox.
- To add the file directly to your project:
Use the attached file as a logo in the header of the website. - To give Bolt a visual reference for style or layout:
Using the attached image for inspiration, change the site's colors, fonts, and other styles to match the image style.
Attach a file from Code view
Adding a file directly in Code view stores it in your project files. Use this method when you need Bolt to continue referencing the file as your project evolves. Because you’re adding the file straight to your project, this method doesn’t consume any tokens.If you’re using Bolt in Safari, Code view is read-only. Use the chatbox to attach your files instead.
- Click the
<>icon to switch to Code view. - Click the Public folder to expand it.
- Drag and drop your image file into the Public folder.
- Right-click the image file and select Copy Relative Path.
Use public/hero-image.png for the header image.