Websites
Assets
Upload logos, photos, and documents your site links to. They survive every rebuild.
Assets are files you upload for your site to use: a logo, product photos, a PDF
menu. Each one is served at /assets/<name> on your site, and builds never
touch them, so a rebuild can't lose or change your files.
Upload
Open the site and go to Assets. Drag files in, or click to choose them. Then ask for them in a build:
Use /assets/logo.png as the logo in the header.
Link "Download our menu" to /assets/menu.pdf.If the site is already published, an uploaded or deleted asset changes on the live site right away, without publishing again.
From the command line, inside a pulled site:
memcode websites assets upload ./logo.png
memcode websites assets upload ./Menu-Final-v3.pdf --name menu.pdf
memcode websites assets list
memcode websites assets delete menu.pdfLimits
- Up to 10 MB per file, and 20 MB of assets per site in total.
- Names can use letters, numbers, dots, dashes, and underscores.
- Supported files: images (JPG, PNG, GIF, WebP), PDF, Word, Excel, PowerPoint, OpenDocument, CSV, JSON, XML, YAML, Markdown, plain text, and HTML.
Images and PDFs open in the browser. Other documents download when clicked.