Hyperclay
  1. Hyperclay
  2. Docs
  3. Workspace
  4. Uploads

Uploads

Upload images and files to your workspace, see how per-document upload folders work, and preview or edit uploaded text files in the dashboard.

You can upload images, PDFs, text files, and other assets from the workspace dashboard or from inside a malleable document. Uploaded files live alongside your documents in the workspace, where you can preview them, edit text uploads in the code editor, or manage them like any other file.

Upload files from the dashboard#

  1. Open the New menu and click Upload files…, or drag files from your computer onto the files table when it shows Upload here.
  2. In the Upload files dialog, click Choose files to pick one or more files. The dialog displays your current storage usage (<X> MB of <Y> MB used) and tracks each file through Waiting, <N>% sent, Processing, Uploaded, or Failed.
  3. When an upload finishes, click Copy link (or Copy all links) to copy its URL, or click Open file to view it in the workspace.

To let people upload files or crop images from a document’s own code, use the upload and quickcrop plugins.

Where uploads live#

When a file is uploaded from inside a document, Hyperclay stores it in that document’s own folder at uploads/assets-document-<document id>/ (created automatically on the first upload) and links to it at /_/uploads/assets-document-<document id>/<file-name>. The folder is named after the document’s id, not its name, so renaming the document never moves its pictures or breaks their URLs, and two documents with the same name never share a folder.

Because that /_/uploads/assets-document-<document id>/ path resolves from the root of your account rather than relative to the document’s current folder, all of the document’s images and attachments keep working when you move the document into another folder.

A file uploaded from inside a document belongs to that document, and where your account’s uploaded files have been protected, its URL follows the document’s read access: anyone the document is shared with can open the picture, and anyone who cannot open the document gets the same 404 the file would give if it did not exist. Change who can read the document and its pictures answer to that on the next request, so a document that becomes private takes its images with it. These files are also sent as Cache-Control: private, no-store, so no shared cache keeps a copy from a time when more people could read them.

What that does not cover: files uploaded before this protection existed stay reachable by their URL until the account’s protection migration has run, and a copy someone downloaded while a URL was public cannot be taken back.

HTML Clay and Hyperclay Local keep the older name-based folder, assets-<document-name>, and their own file-serving rules apply to it rather than a shared-document access rule.

The top-level uploads folder holds attachments for every document in your workspace, so it cannot be renamed, moved, or deleted. You can still rename, move, or delete individual uploaded files and subfolders inside uploads; see Files and folders.

Open an upload#

Click any uploaded file in the sidebar tree or files table to open it in the workspace beside your files:

  • Images (png, jpg, jpeg, gif, webp, avif, svg) render in place.
  • PDFs open in your browser’s PDF viewer.
  • Text files (txt, md, markdown, json, html, htm, htmlclay, jsx, css, js, mjs, csv, tsv, xml, yml, yaml, log) display as plain text.
  • Other files show This kind of file can’t be shown here. with Download and Open in new tab buttons.

Edit a text file in the dashboard#

When you open a UTF-8 text file or an .svg upload and have permission to edit code, a Code tab appears at the top of the view. Click Code to edit the file in the Code editor, then click Save or press Cmd+S (Ctrl+S on Windows and Linux) to save your changes. Click Close Code to return to the preview.

Limits#

Per-file and total upload storage limits depend on your plan:

  • Free: images only (PNG, JPG, GIF, WebP, AVIF or SVG), up to 10 MB per file, 25 MB total storage.
  • Personal: up to 20 MB per file, 500 MB total storage.
  • Maker: up to 100 MB per file, 2 GB total storage.

Uploading a file larger than your plan’s per-file limit returns This file is larger than <N> MB. When your workspace reaches its storage cap, uploads stop with Storage limit reached (<N>MB). Upgrade your plan for more storage.

From the dashboard Upload files dialog, you can upload any file type except .shtml and .xht. When uploading from inside a document’s own upload lane, .html, .htm, .xhtml, .htmlclay, .js, .mjs, .xml, .shtml, and .xht are refused so HTML documents and scripts are saved through the document save lane instead.