---
title: "When a file is uploaded, run the job on Neon"
description: "Neon added a storage_object_created function trigger that invokes a Neon Function via HTTP POST when an object is created in a Neon Object Storage bucket, optionally filtered by key prefix."
url: "https://swe.quest/articles/when-a-file-is-uploaded-run-the-job-on-neon-11d1f9b245942444"
canonical: "https://neon.com/blog/when-a-file-is-uploaded-run-the-job-on-neon"
source: "Neon"
published: "2026-09-22"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["serverless","event-driven","postgres","storage-systems"]
---

# When a file is uploaded, run the job on Neon

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-09-22, 7 min read, Announcement. Original: [https://neon.com/blog/when-a-file-is-uploaded-run-the-job-on-neon](https://neon.com/blog/when-a-file-is-uploaded-run-the-job-on-neon)

## Summary

Neon added a storage\_object\_created function trigger that invokes a Neon Function via HTTP POST when an object is created in a Neon Object Storage bucket, optionally filtered by key prefix. The payload carries the bucket name and object key. Functions are long-running and scale to zero, and they wake Postgres compute on demand. Example pipelines include cataloging uploads in Postgres, generating image variants under a separate prefix to avoid self-triggering, AI tagging, PDF chunking and embedding for search, and moderation, which runs after the upload lands and so cannot block it. Triggers branch with the data but are disabled by default on child branches, and they can be declared in a neon.ts config file alongside buckets and functions.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- Object storage basics ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- Serverless functions ([easy posts on Serverless](https://swe.quest/tags/serverless.md?difficulty=easy))

## Keywords

Neon, Neon Functions, Neon Object Storage, storage\_object\_created, Neon AI Gateway, Lakebase Search

## Related posts

- [Add files to your branches](https://swe.quest/articles/add-files-to-your-branches-c605b42373f4bac8.md): Neon · 2026-11-23 · Medium · 6 min read · Storage systems, Serverless, PostgreSQL, Cloud platforms
  Neon Object Storage is an S3-compatible store whose buckets belong to database branches: child branches inherit buckets and objects via the same copy-on-write model as Neon Postgres, so previews get isolated, unbilled-until-diverged copies of production files.
- [Neon Functions: backend logic next to your data](https://swe.quest/articles/neon-functions-backend-logic-next-to-your-data-fe00336dce0040ff.md): Neon · 2026-08-12 · Medium · 5 min read · Serverless, PostgreSQL, Real-time systems
  Neon Functions are long-running Node.js 24 compute deployed onto a Neon branch, in the same region and on the same infrastructure as its Lakebase Postgres database, with DATABASE\_URL and other Neon backend credentials injected automatically.
- [Postgres Event Triggers Are Now Supported in Neon](https://swe.quest/articles/postgres-event-triggers-are-now-supported-in-neon-6c294c5befac4572.md): Neon · 2025-07-03 · Medium · 3 min read · PostgreSQL, Schema migrations
  Neon now supports Postgres event triggers through the neon\_superuser role, and they behave exactly as in vanilla Postgres.
- [Building Neon Object Storage](https://swe.quest/articles/building-neon-object-storage-34a868ace858c276.md): Neon · 2026-08-06 · Easy · 6 min read · Storage systems, PostgreSQL, Cloud platforms, Infrastructure as code
  Neon Object Storage is an S3-compatible object store whose buckets and objects branch together with a Neon Postgres database under one shared branch\_id, so a child branch inherits files at the fork point with copy-on-write isolation.
- [Your Neon Functions can now run on a schedule](https://swe.quest/articles/your-neon-functions-can-now-run-on-a-schedule-72b4a206b2b5554b.md): Neon · 2026-09-21 · Medium · 5 min read · Serverless, PostgreSQL, Scheduling
  Neon Function Triggers let Neon invoke a deployed Node.js function on a cron schedule.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
