Files and uploads
Uploads are private by default, shared by signed link and counted toward your storage. What is accepted and how to show a file.
On this page
Your website's users can upload documents, photos and spreadsheets: a client sending a signed agreement, a member adding a profile picture, a form with an attachment.
What is accepted
Images, PDFs, plain text and CSV, JSON, and Office documents. If a file cannot be uploaded, your website shows the reason.
Private by default
Uploads are private. A file's address on its own does not open it; the website makes a signed link that works for a limited time, and that is what goes into an image tag, a download link or a new tab.
import { files } from "@praxivara/sdk";
const up = await files.upload({ file }); // from <input type="file">
// up = { file_url, name, size, content_type }
const { signed_url } = await files.createSignedUrl({ file_url: up.file_url, expires_in: 900 });
<img src={signed_url} />Who can upload
Uploading needs a signed-in user. Intake forms are text only.
Storage
Uploads and generated PDFs count toward your account's storage, charged in credits based on how much you store. You can see it on the Usage page. Deleting a file frees its space.
Files the website ships with
Logos, photos and other files the website's own pages use are part of the website and live in your Media library, separate from user uploads.
Reading files with AI
A function or page can hand an uploaded file to AI to read or extract fields from. See AI in your website.
What went wrong? Pick any that apply.
That didn't send. Try again in a moment.