Skip to content

Attachment fields: files on a record

Attach files to a record: drag them in, thumbnails in the grid, images in a lightbox. The 100 MB per-file cap, and the hour-long signed URLs over the API.

Updated November 2026

An attachment field holds files, as many per cell as you like, in an order you control. The files are kept on S3-compatible storage, and the record holds the references to them. A plant can have its photo and an order its signed delivery note, and the files go everywhere the record goes, export included.

In the grid

Images are drawn as thumbnails at the row's height and keep their own proportions. A wide photo gets a wide tile, and a narrow field clips it and does not squash it. Files that aren't images are drawn as a square chip with the extension on it, such as PDF, CSV or ZIP.

A tile that is still loading is a plain gray square. A picture that could not be fetched at all gets the same square with a line struck through it, so a thumbnail that is never coming does not look like one that is nearly here. The file itself is untouched, and it downloads normally when you open it.

The first click selects the cell. On the selected cell:

  • clicking a thumbnail opens that file. An image opens in the lightbox, and anything else opens in a new tab, where the browser saves it (the link is served with a download disposition).
  • clicking the small expand button in the cell's corner, or any empty space, opens the manager.

To add files without opening anything, drag them from your computer straight onto the cell. The cell they will go into is outlined as you hover, and they are added to whatever the cell already holds. A file over the size cap is refused with a message saying so.

The lightbox shows the image full-size over a dark backdrop, with the filename and size, a download button, and a trash button that asks "Delete this file?" inline before doing anything. Escape, the backdrop, or the ✕ close it.

An image attachment open in the lightbox: the photo full-size on a dark backdrop, with filename, size, download and delete controls beneath it.

The manager

The manager is one modal for everything else. You open it from the grid cell or the record panel:

  1. Drop files here, or click to choose takes several files at a time. Uploads run two at once and show "uploading…" with no percentage. A failed tile says why and offers a retry. On a phone or tablet the same place has two buttons instead: Take a photo, which opens the camera, and Choose files, for a photo you already have or a PDF.
  2. or paste a file/image URL: Tabla fetches the file and stores a copy, so you keep it even if the source link stops working. If the site refuses Tabla's server, your browser fetches the file instead. If the site refuses that too, the manager says so, and you can save the file and drop it in.
  3. Drag tiles to reorder them. The cell keeps the order.
  4. Hover a tile for the ✕. Removing asks once ("Remove "monstera.png"?") and is permanent. Attachments aren't shared between cells, so removing one deletes the file, and the record trash does not apply to it.

Copying an attachment cell and pasting it elsewhere duplicates the files. The two cells don't share them, and each has its own copies.

A photo in the iPhone's own format, HEIC, is saved as a JPEG with a name ending in .jpg (IMG_0412.HEIC becomes IMG_0412.jpg), so it shows in every browser, in exports, and in anything you send it to. Every other file is kept as it came, with nothing changed.

The limits

A file can be up to 100 MB, and that is checked before the upload starts. An account gets 100 GB of attachment storage, counted across every database the account owns. Both are listed in limits.

Over the API

An attachment cell reads as a list of objects. This one is from the demo shop's Plants table, trimmed:

"Photo": [
  {
    "id": "att_tfhj23qqkanc",
    "filename": "monstera.png",
    "size_bytes": 31176,
    "content_type": "image/png",
    "url": "https://…?X-Amz-Expires=3600&…",
    "thumb_url": "https://…",
    "card_url": "https://…"
  }
]

url is a signed download link for the original, valid for about an hour. Fetch the record again when you need a fresh link, and don't store the URL anywhere long-lived. thumb_url and card_url are smaller copies of images, sized for grids and cards. For files that aren't images they fall back to the original.

If you have a link, put it straight in the cell. Tabla fetches it during the write and stores a copy:

curl -X PATCH "https://tabladb.com/api/tables/tbl_jukzu86nxtcj/records" \
  -H "Authorization: Bearer key_xxxx.your-secret" \
  -H "Content-Type: application/json" \
  -d '{"records":[{"id":"rec_gjb32pptrttb","fields":{
       "Photos":["https://example.com/terrace.png"]}}]}'

Items can be mixed. ["att_tfhj23qqkanc", "https://…/new.png"] keeps a file and adds one, and {"url": "…", "filename": "…"} lets you name the stored file yourself. This works on create too, so a record and its files can be made in one call. The fetch is anonymous, so the link has to be publicly reachable. The limit is 20 URLs per request, and if one fails the whole write fails and nothing is kept.

If you have raw bytes, upload them first: POST /api/tables/:id/attachments with multipart fields file, field_id and record_id, then set the record's attachment field to the list of att_… ids you want it to hold. That route needs the record to exist first, so you always attach to a saved record. The full shapes are in /docs/api.

When a URL field is enough

If the file is already kept somewhere permanent (a contract in your document system, say) and you only need to point at it, a URL field is lighter and never counts against storage. Use an attachment when Tabla should keep the file itself.

About Tabla

Tabla is a no-code database with Postgres underneath. Every feature is on every plan, you get a million records per database, and you can export your whole database in one file any day.

More guides