BlogFiles

My uploaded files disappeared after I deployed.

Anything your app saves to its own disk is gone after the next deploy. Nothing errors. Use a bucket for files.

How the Agent API works
  • What happenedThe disk was replaced
  • The fixA private S3 bucket
  • No error shownWhich makes it easy to miss
  • Flagged before buildAntideploy warns about it

The short answer

Your app runs in a container, and the container is replaced on every deploy. Its disk goes with it. Files your app saved there, such as uploads or generated images, are gone, and nothing reports an error. Save files to a bucket instead. Antideploy creates a private S3 bucket for your app, and your agent can set it up in one step.

How to tell

  • The app uses multer, fs.writeFile or a local uploads folder. Antideploy flags uploads written to the app's own disk before it builds anything.
  • Uploads work, then vanish after the next deploy or restart. A restart or a scale-to-zero has the same effect.

How to fix it

  1. Ask your agent for a bucket

    Say: "Store uploads in a bucket, not on disk." Your agent creates a private S3 bucket for the app and writes its variables into your .env.

  2. Use an S3 client in your code

    Replace the code that writes to disk with an upload to the bucket. The AWS SDKs and boto3 read the variables from the environment.

  3. Serve files through your app, or with a signed link

    The bucket is private. Hand the visitor a signed link, or serve the file through your app.

See how to add file uploads to your app for the code.

01Before you commit

Here's where it stops.

A platform that only tells you what it is good at is one you find the edges of in production. These are the ones to know before your first deploy.

  1. The disk forgets

    Anything written to local disk is gone on the next deploy. Apps that speak S3 get a bucket instead.

02Questions

Upload questions, answered.

Anything else? Write to us and a person answers.

support@antideploy.com
Can I recover the lost files?

No. Once a deploy replaced the disk, those files are gone. Start saving to the bucket from now on.

Does this happen on every plan?

Yes. The disk is temporary on every plan.

How much can I store in a bucket?

Storage is not metered or capped today. The limit is the number of buckets in your plan: 1 on Free, 2 on Go, 3 on Pro and 5 on Scale.

Deploy something. Start with one sentence.

Paste one sentence into your coding agent, click Approve once, and get a live link. No card, no trial clock.

Start from GitHub or a folder
Prompt copied Paste it into Claude Code, Codex or Cursor and press Enter.