Neon Local makes it easy to spin up short-lived, isolated Postgres environments using Docker
Docs/Getting Started/File storage

File storage

Store files in external object storage and file management services and track metadata in Neon

Applications often need to handle file uploads and storage, from user avatars and documents to images and other media. Neon does not yet provide a native file storage solution. Instead, we recommend combining Neon with a specialized storage service.

The typical pattern looks like this:

  1. Upload files from your application (client or backend) to an object storage provider or file management service.
  2. Store references—such as the file URL, unique key, or identifier—and related metadata like user ID, upload timestamp, file type, size, and permissions in your Neon Postgres database.

This pattern separates file storage from relational data management, with purpose-built services like S3 or R2 handling file storage and Neon managing your data.

Options for external storage

You can integrate Neon with a variety of storage solutions:

  • S3-compatible object storage: Services like AWS S3, Cloudflare R2, and Backblaze B2 offer file storage via the widely-adopted S3 API.
  • File and media management SaaS platforms: Services like ImageKit, Cloudinary, Uploadcare or Filestack provide higher-level abstractions, often including additional features like image optimization, transformations, and SDKs, while managing the underlying storage infrastructure for you.

Need help?

Join our Discord Server to ask questions or see what others are doing with Neon. Users on paid plans can open a support ticket from the console. For more details, see Getting Support.

Last updated on

Was this page helpful?