Issue Chaining "Upload File" & "Insert Row" (Supabase)

Actions & Logic

Hi everyone! I’m struggling to get a form working that uploads a file and saves metadata to my database. Here is the setup and the problem I'm facing:

The Goal

  1. Selection: User selects a Class and Subject from dropdowns.

  2. Upload: User uploads a file.

  3. Submit: On click, the file goes to my Supabase bucket, and a new row is created in the past_papers table containing the File URL + the selected IDs.

My Setup

  • Action 1: Upload File to Supabase (Bucket: past_papers).

  • Action 2: Insert Row (Table: past_papers).

    • Mapping: File URL mapped to the Download URL from Action 1 output; IDs mapped to my widget states.

    • "Wait for Action to Complete" is ON.

The Problem

The file uploads to the bucket perfectly, but the Insert Row action never fires (or fails to save).

The Context & What I’ve Tried

  • The "View" Conflict: I am using class_subjects_view to populate my dropdowns so the user sees readable names (e.g., "Mathematics" instead of a UUID). Since views are read-only, I am correctly targeting the base past_papers table for the Insert action.

  • Junction Table Attempt: I previously tried targeting the junction table directly. This allowed the insert to work, but the dropdowns showed the raw IDs instead of readable names.

  • Troubleshooting: I’ve confirmed my RLS policies are set to allow INSERT on the past_papers table.

Does anyone have a reliable way to chain these two actions? Is there a trick to passing the "Download URL" output from the upload action to the insert action when using a view-based UI?

What have you tried so far?
Did you check FlutterFlow's Documentation for this topic?
No