Blog

Upload Multiple Files on a Quickbase Form and Require at Least One Attachment

Use a grid report of an Attachments child table, embedded on the parent form, to upload several files without leaving the record (released October 28, 2026), then block submitting until there's at least one, with a summary count and a custom data rule.

Three files in an embedded grid with an Add row button, next to the rule If Status is Submitted and # of Receipts is 0

Two questions in the Quickbase community come down to the same problem:

  • Multi-File Upload: people need to attach several files to one record, and the code-page and plugin workarounds don't play well with new, unsaved forms.
  • Mandatory Multiple Attachment for a Record: the files live in a child Attachments table, and the record shouldn't be submitted until at least one file is there. Leaving the form to add a file loses what was typed, and a form rule that blocks saving stops people from saving first.

Since October 28, 2026, grid reports can edit file attachment fields, including grid reports embedded on forms. That removes most of the friction. Below is the setup I'd use: upload as many files as you need right on the parent form, then require at least one before the record can be submitted.

An Expense Report form with an embedded Receipts grid. Each row holds one file. A summary field counts the receipts, and a custom data rule blocks Status = Submitted while the count is 0.

What changed in October 2026

The release "Editing file attachments in grid reports" (release note, released October 28, 2026, Team, Business and Enterprise plans) lets you upload, replace, delete, restore and lock files in a grid report. It works in standalone grid reports, report and search widgets on dashboards, and grid reports embedded on forms and subforms. You can drag a file onto a cell, and each file can be up to 100 MB. The details are in Quickbase's help article Edit file attachments in grid reports.

Two things haven't changed:

  • A file attachment field still holds one file per record. "Multiple files" means multiple child records, one file each.
  • This needs grid reports and the new-style (non-legacy) forms. Grid reports aren't compatible with legacy forms. If your app still uses legacy table reports, turn grid reports on under App Settings > App Properties > Advanced Settings (Use grid reports in this app).

The example

Two tables:

  • Expense Reports (parent): Employee (Sarah Lee), Trip, Total, and a Status field with Draft, Submitted and Approved.
  • Receipts (child): Description, Amount, and a Receipt File (file attachment field). Each receipt belongs to one expense report.

Sarah should be able to add five receipts without leaving her expense report, and she shouldn't be able to submit it with no receipts at all. The same pattern works for inspections and photos, claims and documents, or any "Attachments" child table.

Step 1: Set up the child table

  1. Create the Receipts table (or use your existing Attachments table) with a File Attachment field, here Receipt File.
  2. Create the relationship: one Expense Report has many Receipts. This adds the Related Expense Report reference field on Receipts.
  3. Open the Receipt File field's properties and turn on Must be filled in. Now a receipt row can't be saved without a file. In a grid you'll get a "Required field is left empty" message that tells the person to add a file. (Grid reports also have a column property to mark a field required just in that report, if you'd rather not make it required everywhere.)
  4. Create a grid report on Receipts with the columns people need: Receipt File, Description, Amount. Make the file column at least 200 pixels wide so the Upload file label shows. Narrower columns show just the icon.

Step 2: Embed the grid on the parent form

  1. Open the Expense Reports form in the form builder (a new-style form).
  2. Add the Receipts report to the form. You can use the relationship's report link to the related receipts and set it to show the grid report from Step 1, embedded on the form.
  3. Select the embedded report and open Advanced options. Turn on Show create record buttons. This shows the Add row button (and the New record button) on the embedded report. If it's off, nobody can add receipts from the form.
  4. Save the form.

Now, with the record in edit mode, Sarah clicks Add row, drags a PDF onto the Receipt File cell (or uses Upload file), types the description and amount, and repeats for each receipt. The related-record link is filled in for her. Everything saves when she saves the form.

A few things to know:

  • Save the parent once first. I'd have people save a brand-new expense report (as Draft) before adding receipts, so the rows have a saved parent to link to. A "Save & keep working" button, or simply saving and choosing Edit again, handles this.
  • There's a save limit. All unsaved changes on the form count toward it, including files in embedded reports. Quickbase warns you as you get close, and turns off Save if you go over. If that happens, undo a few changes, save, and add the rest in a second pass.
  • Undo and redo next to Save work for file changes too.

Step 3: Count the receipts

On Expense Reports, add a summary field through the relationship:

  1. Go to the Expense Reports table's fields and add a Summary field, or add it from the relationship's settings.
  2. Choose Count of Receipts and name it # of Receipts.

Because Receipt File is required, every receipt row has a file, so a count of rows is a count of files. If you skipped the required setting, add a condition to the summary so it only counts receipts with a file.

Step 4: Block submitting without a receipt

Open the Expense Reports table's Settings > Advanced settings, turn on custom data rules, and enter:

If(
  [Status] = "Submitted" and [# of Receipts] = 0,
  "Add at least one receipt before you submit. Save the receipts first, then set Status to Submitted."
)

A custom data rule returns nothing when the record is fine and returns text (your error message) when it isn't. Quickbase checks the rule on every add or edit: forms, grid edits, imports, the API and pipelines. So a report can't be submitted without a receipt, no matter where the change comes from.

Why the rule checks Submit, not the first save

The obvious rule is "no saving without a receipt." That's the trap from the community thread:

  • On a brand-new record, the summary field only counts receipts that are already saved. Before the first save there are none, so the rule would block every new record, forever.
  • Quickbase's own help on custom data rules warns that rules can behave unexpectedly when they check summary or lookup fields and the form has embedded, editable reports. Adding receipts and changing Status in the same save is exactly that case.

So split it into two saves:

  1. Save as Draft with the receipts. No rule fires, the receipts are saved, and # of Receipts goes up.
  2. Submit: change Status to Submitted and save again. Now the count is current, and the rule either lets it through or shows the message.

Step 5 (optional): A Submit button

Rather than asking people to change Status by hand, give them a button that does it after the receipts are saved. On Expense Reports, add a Formula - URL field called Submit:

URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#]
  & "&_fid_8=Submitted"
  & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#])

Replace 8 with your Status field's ID. If the app requires application tokens, add &apptoken= and your token. Turn on Display as a button in the field properties.

Then add a form rule so the button only shows when it makes sense: show Submit when # of Receipts is greater than 0 and Status is Draft. The form rule is for convenience. The data rule is what actually enforces it, because it also covers imports, grid edits and pipelines.

If someone clicks Submit and the rule fails, the error comes back from the API call with your message. That's why the message should say what to do next. I covered that pattern in more detail in Required fields skipped by a custom Submit button? Enforce them with a custom data rule.

Troubleshooting

  • No Add row button on the form. Turn on Show create record buttons for the embedded report in the form builder's Advanced options. Also check that the form is a new-style form, the report is a grid report, and the user's role can add Receipts.
  • No upload option in the file cell. The form or report isn't in edit mode, the user can't edit that field, or someone else locked the file.
  • "We can't upload this file because it is larger than 100MB." Each file can be up to 100 MB. Compress it or split it up.
  • Save is greyed out. You went over the save limit. Undo some changes, save, and add the rest in a second round.
  • The rule blocks a report that has receipts. The receipts and the status change went in the same save. Save the receipts first, then submit.
  • The rule never fires. Check that the Status text in the formula matches the choice exactly ("Submitted") and that custom data rules are turned on for the parent table, not the child.

Quick checklist

  • Child table with a required File Attachment field, one file per row
  • Grid report of the child table embedded on the parent's new-style form
  • Show create record buttons turned on in Advanced options
  • Summary field # of Receipts on the parent
  • Custom data rule: If([Status] = "Submitted" and [# of Receipts] = 0, "...")
  • Save receipts first, then submit (a Submit button makes it one click)

The original questions are in the Quickbase community: Mandatory Multiple Attachment for a Record and Multi-File Upload.