Skip to the article

Publishing

Three ways in. All of them end the same way: a link that works, with no build step and nothing to set up.

A single file

Paste a .tsx, .jsx or .html file into the box at /new. A React component is turned into a page, together with React, Tailwind and the shadcn/ui components it imports. An HTML file is served as it is.

You do not have to name the file correctly. The content decides: a file that starts <!doctype html> is HTML whatever the box says, which is not a nicety — it is a bug we shipped and had reported on the first day.

A folder

Drag a folder onto the box, or use Choose folder under Upload files, or drop a .zip. Nothing is compiled: the files you upload are the files that get served, at the paths you gave them.

If there is an index.html at the top, that is the page the link opens on. If there is not, it opens on the page that looks like the start: one called home.html, main.html or inicio.html, its only page, or the page the others link to most. You can pick another under Which page should open first? when you sign in to keep it, or in its settings under Link. Every page keeps its own address, so a link to home.html still opens it.

A folder with no page at all opens on its files, a folder at a time: its folders first, each with how many files it holds and their size, then its files, then its README under them, the way code hosts show one. A folder whose only file is a PDF, a presentation, a text file, a picture or a sound file in a format the player plays (MP3, M4A, AAC, WAV, FLAC, OGG, Opus, OGA or WEBA) opens on that file instead. A MIDI file on its own stays on the list. Every folder and file has its own address, and its page says where it is, each folder above it a link back up. A folder of images, a report and its spreadsheet or a project's source is a perfectly reasonable thing to want a link to.

A file that is not a web page opens in a way made for it:

  • A Markdown file (.md), as a page to read: headings, lists, tables and code laid out in one column, with a switch to its source, Copy and Download. The HTML a README lays itself out with, like a centered logo, a badge or a link, is drawn. Scripts, styles and every other tag are shown as text, never run.
  • A .txt, or source code like .cpp, .py, .php or a LICENSE, the same way, as numbered lines. It is served as plain text, so a browser shows it and never runs it.
  • An image, on a page of its own. A picture published alone opens on it, and in an <img> its link is the picture itself (image to link).
  • A sound file in one of those formats or a video, in a player with speed and Download. A sound file published alone opens on the player, and in an <audio> tag its link is the file itself (MP3 to link).
  • A PDF, in a viewer that works on every device.

Add ?raw=1 to a file's address for the file itself, or ?download=1 to download it, unless downloads are turned off (below).

On Solta, the Files panel opens each file beside it, and the bar above the site says which one you are on. Each file also has its own link to open in a new tab.

The limits depend on your plan. Unpacked, a folder or zip can be up to 10 MB on Free, 50 MB on Plus and 250 MB on Pro and Team, and one file in it up to 10 MB on Free, 25 MB on Plus and 100 MB on Pro and Team. On every plan, up to 500 files, and the kinds of file people publish: web pages and what they load, documents (Word, Excel, PowerPoint, Pages, Keynote, Numbers, OpenDocument, EPUB), pictures (Photoshop, HEIC and camera RAW among them), audio, video, fonts and source code. A document or picture a browser can't show is a download. Programs and installers (.exe, .msi, .apk, .dmg and the like) are always left out, and so are files that usually hold passwords, like .env or wp-config.php. Whatever is left out is named in the message.

A page that isn't there

When somebody opens an address on a site of yours that has nothing at it, say an old link to /pricing.html, they get a page saying it isn't here, with your site's name and a button back to its first page. It is part of your site, with status 404, so search engines know the page is gone.

To use your own instead, add a file called 404.html at the top of the folder, beside index.html. It is served for every missing page, on every plan. Write its links from the top of the site (href="/", /style.css), because the same file answers at any depth.

Two things it does not change. A missing image, script or stylesheet gets a plain 404, never a page. And a single-page app (React Router and the like) keeps working: an address with no dot in it, like /settings, opens your index.html so your app can route it. Adding a 404.html switches that off, as on Cloudflare Pages, so an app that routes for itself should not have one.

Letting visitors download the site as a PDF

On Plus, Pro and Team, turn on Let visitors download a PDF under PDF downloads in a site's Site settings. The site gets a Download PDF button in the corner of its pages, and /_solta/pdf on the site's address downloads the same file, for a button of your own.

Solta makes the PDF from the live version, on A4 pages, and makes it again each time you publish. A page with print styles of its own (an @page rule or an @media print block) is printed the way they say. Any other page keeps its screen look: its desktop layout, colors and backgrounds, with cards and pictures kept off page breaks. A site behind a password or an invitation is printed as the people let in see it, and the PDF is behind the same door. Videos, animations and anything that moves are printed as they stand.

When the page doesn't print the way you want, choose Upload your own PDF (up to 25 MB, counted in your storage). Visitors get that file until you choose Use the one Solta makes.

Turning off download and printing for PDFs

On Pro and Team, a site's Site settings have PDF downloads. Turn off download and printing and its PDFs, whether the site is one PDF or a folder with some in it, open in Solta's viewer with no Download button. ?download=1 and ?raw=1 open the viewer instead of the file, the file is not handed to another page that embeds it, and printing the page prints nothing.

It takes away the easy ways to keep a copy. It can't stop a screenshot, or someone determined to copy what they can read.

The icon in the tab

On every plan, Site settings have Tab icon: upload a small square picture (PNG, SVG, ICO, WebP or JPEG, up to 512 KB) and browsers show it in the tab and in bookmarks beside your site's name. An SVG, or a square PNG or JPEG of 180 × 180 or larger, is also the icon when somebody adds the site to a phone's home screen, and the installed app's icon when the site can be installed and App settings has no icon of its own. Smaller, or an ICO or WebP, it stays in the tab, and an installed app shows the site's initial. A new icon shows the next time a page is opened.

A page that names its own icon, with <link rel="icon"> in its head, keeps it. A favicon.ico of your own at the top of the folder still answers at /favicon.ico; the setting answers there when you have none. An SVG with a script, or that loads anything from elsewhere, is refused.

Without an account

You can publish without signing up. The site is live immediately and disappears after 24 hours unless you sign in to keep it. That takes one click and a magic link, and does not change the address, so anything you already shared keeps working.

The link to keep it is shown once, on the card you get after publishing. The browser that made the site also remembers it, so closing that tab is no longer how you lose something.

What we refuse

Files are scanned before anything is stored. A file with an API key or a password in it is refused rather than published — you would have leaked it to whoever you shared the link with, and by then it is too late to be helpful about it.

A folder is also checked for programs. Solta serves web pages, so a file whose contents are an executable is refused even when it is named something we would otherwise serve — the whole upload, naming the file, rather than quietly leaving a download link that goes nowhere.