Security basics
Supabase Storage "Object not found" for a file that is there
Supabase Storage "Object not found" for a file you can see means a wrong path, or a private bucket whose rules hide the file from whoever asked.

In short
- Supabase Storage "Object not found" means Storage found no file at that exact path among the files the request was allowed to see. The file can still be in your dashboard.
- In a public bucket it means the path is wrong. In a private bucket it can also mean the file is there and your rules do not let that visitor read it.
- Making the bucket public, or adding a read rule that names only the bucket, ends the message by opening every file in it to strangers.
- Fix the path, or give each reader a rule that matches their own files, and show those files through a signed link.
Your app shows an empty frame where a photo should be, or a download button does nothing, and the console has the reason: "Object not found". Then you open Supabase, go to Storage, open the bucket, and the file is sitting right there.
Open the failing request and Storage's whole answer looks like this:
{
"statusCode": "404",
"code": "NoSuchKey",
"error": "not_found",
"message": "Object not found"
}
That is the body Supabase Storage's own source builds today, read on 29 November 2026. Supabase Storage "Object not found" means Storage looked for a file at that exact path and found none it would hand to that request. When the file is in your dashboard, one of two things is true: the path your app asked for is not the file's path, or the file is in a private bucket and your rules do not let the person asking read it.
The fix you will find first is to make the bucket public. It does end the message, by letting anyone who has a file's address open that file. If the path was the problem, the message stays.
What does Supabase Storage "Object not found" mean?
Storage found no file with exactly that name, in that bucket, among the files the request was allowed to see.
Storage keeps a row for every file in a table called storage.objects, and
finding a file means finding its row. Which rows a request gets to see depends
on the bucket:
- In a public bucket, Storage looks through every row. A file it cannot find there is missing at that path, so the path is what to check.
- In a private bucket, Storage looks through the rows as the person asking,
under your Row Level Security rules on
storage.objects. Row Level Security is the set of rules that decides, row by row, who may read what. A row those rules hide comes back as not found, exactly like a row that was never there.
That choice is written into Storage's source: for a private bucket the lookup runs as whoever sent the request, and for a public one it runs past your rules. That is how the dashboard and your app come to disagree. The dashboard lists every file in the bucket, whatever your rules say. Your app asks as one visitor, and often as a signed-out one.
A neighbouring error looks similar and has a different cause. When the bucket
is private and the link came from getPublicUrl, Storage answers "Bucket not
found" instead, because a public address only counts public buckets.
That one has its own explanation.
Cause 1: the path is not the file's path
Storage compares the name in your request with the file's name character for
character, so Photo.JPG and photo.jpg are two different files, and so are
photo.jpeg and photo.jpg.
In Storage's source the lookup is a byte-for-byte comparison of the name. A
file's name in Storage is its whole path inside the bucket, folders included:
user-123/avatar.png rather than avatar.png. A missing folder, a space or a
capital letter each comes back as "Object not found".
One version of this happens without anybody typing anything wrong. When your app uploads a file, Supabase's client library hands back two paths, and this is the example from the library's own documentation:
{
"path": "public/avatar1.png",
"fullPath": "avatars/public/avatar1.png"
}
path is where the file sits inside the bucket. fullPath starts with the
bucket's name. Code that saves fullPath and later asks .from('avatars') for
it is asking for avatars/avatars/public/avatar1.png, a file nobody uploaded.
To compare the two, open your browser's developer tools on the page that fails,
go to the Network tab, and find the request to Storage. Its address contains
/storage/v1/object/ and ends with the bucket name and the path your app asked
for. Put that path next to the one the dashboard shows for the file, folder by
folder.
If the two match exactly and the bucket is public, the file is not in that bucket of the project your app talks to. If the bucket is private, read the next cause before you change anything.
Cause 2: the file is there, and the person asking may not read it
In a private bucket, a file your rules do not let the visitor read is reported as not found. This is the cause that sends people to the public toggle.
Your rules on storage.objects are the only thing that lets a visitor read a
file in a private bucket. Supabase's access control guide says it in one line:
to let users read their own files in a private bucket, add a select policy on
storage.objects. A policy is one of those rules, written in SQL. With no
select policy at all, every file in the bucket is "Object not found" to your
app, while the dashboard goes on showing all of them.
With a policy in place, two shapes of it still miss the file:
- The rule is for signed-in visitors, and the request was not signed in. A
rule written
to authenticateddoes nothing for a request sent before the sign-in finished loading, or from a page a signed-out visitor can open. That request arrives asanon, the role Supabase gives a visitor with no session, and no rule covers it. - The rule names a folder, and the file is outside it. Supabase's own example ties each person's files to a folder named after their user id. A file uploaded at the top of the bucket, or into a folder named something else, or by you through the dashboard, sits outside every visitor's folder.
The signed link does not get around any of this. createSignedUrl is how most
apps show a private file, and before Storage signs anything, its source looks
the file up as the person asking, under the same rules. If they may not read
it, no link is made, and the error that comes back is "Object not found".
Should you make the bucket public to fix it?
Only if every file in the bucket is meant for anyone who has its address, and only for the second cause. A wrong path stays wrong in a public bucket.
A public bucket makes Storage skip your rules when a file is read, for anybody who has the address. Supabase's own examples of what belongs in one are profile pictures, public media and blog post content. Invoices, ID scans, exports and anything that belongs to one person are the opposite case, and the toggle covers every file that lands in the bucket later as well.
The second shortcut is quieter and goes further. It is a read rule with no condition about who is asking:
create policy "Public Access"
on storage.objects
for select
using ( bucket_id = 'avatars' );
That makes every file in the bucket readable by any request carrying your app's
publishable key, which ships in your app's code for anyone to copy. It also
hands over the list of names, because Supabase uses the same select privilege
for listing a bucket and for reading a file. We have scanned 8,435 live apps that
name a Supabase project. The bucket check got an answer from 4,703 of them, and
792 answered a list request from us with the names of what was inside, with
nobody signed in. That is about one in six of the apps we could ask.
How do you fix "Object not found" without opening the bucket?
Fix the path if it is wrong. If it is right, give the reader a select rule
that matches the files they should see, and show those files through a signed
link.
For files that belong to one person, the shape Supabase publishes ties each person's files to a folder named after them. This is its read version:
create policy "Read your own files"
on storage.objects
for select
to authenticated
using (
bucket_id = 'my_bucket_id' and
(storage.foldername(name))[1] = (select auth.jwt()->>'sub')
);
storage.foldername(name) splits the file's path into its folders, so [1] is
the first one, and auth.jwt()->>'sub' is the id of whoever is signed in. Each
person can read the files in their own folder and nothing else. It only finds
files that were uploaded into that folder, so check where your upload code puts
them: the path should start with the user's id.
The upload error covers the matching upload rule,
including how to stop a read rule from opening the list as well.
For a picture on a page, use createSignedUrl. An <img> tag cannot send the
visitor's session with its request, so a private file reaches the page as a
link that works for a number of seconds you choose and then stops. The link is
only made after the rule above has said yes, so it only ever goes to somebody
allowed to read the file.
To hand this to your builder, in plain words: for the file that says "Object not found", log the path the app asks for and compare it with the path in Storage. If they match, keep the bucket private, add a storage policy that lets each signed-in person read the files in their own folder, ask for the file only after sign-in has loaded, and show it with createSignedUrl.
Once it works, check that nothing was opened on the way. Our free scan asks your live project for each bucket's list of files using only the key already in your app's code, the way a stranger would, and tells you which buckets answered with names. It reads names and never downloads a file. It takes about 20 seconds and needs no account: scan your app.
Keeping your files readable to the right people
The rule that works today can be loosened next month by whoever chases the next broken picture, and a file somebody needed can be deleted. Reeve watches for the first and keeps a copy against the second. A database copy alone brings back the rows that name your files and none of the files, which is why a Supabase storage backup is a separate job.
Reeve Monitor keeps checking from outside:
- the full security check every hour, including whether a stranger can list the files in your storage buckets
- whether your app answers, every 60 seconds, and up to 10 more pages you choose
- an alert by email, Telegram, Slack or webhook when the app goes down or a page breaks
- a monthly report on your app, written for you
Reeve Care keeps a copy of what is in there:
- an encrypted copy of your Supabase database on a schedule, on Reeve's own storage in the EU, outside your Supabase account
- your uploaded files as well, once you connect a Storage credential
- each copy verified before it counts, by counting the rows in every table
- a one-click restore, with a safety copy of the current state taken first
- everything Monitor does
What to do today
What to do
- Find the failing request in the Network tab and compare its path, folder by folder and capitals included, with the file's path in Storage.
- If your code saves the upload's
fullPath, savepathinstead, or the bucket name ends up in the path twice. - In a private bucket, read every
selectrule onstorage.objectsand find the one that should match this visitor and this file. - Keep the bucket private unless every file in it is for anyone with its address, and show private files with
createSignedUrl. - Leave out the read rule that names only the bucket. It hands out every file and the list of names along with them.
Start with the path, because it takes one look in the Network tab to rule out. If a bucket of yours turned out to be public, read what a public bucket exposes next, and the 10-minute security checklist covers what else a newly launched app tends to leave open.
FAQ
Why does Supabase say "Object not found" when I can see the file in Storage?
The dashboard lists every file in the bucket, whatever your rules say. Your app asks as one visitor, and in a private bucket Storage looks the file up under that visitor's rules, so a file they may not read is answered exactly like a file that does not exist. If the bucket is public, the path your app asked for is not the path of the file.
Does createSignedUrl check my storage policies?
Yes. Before it signs anything, Storage looks the file up as the person asking, under your rules on storage.objects. If no select rule lets them read that file, no link is made and the error that comes back is "Object not found".
Should I make my bucket public to fix "Object not found"?
Only if every file in it is meant for anyone who has its address, such as profile pictures or product photos. A public bucket skips your read rules for downloads, so the message goes away because every file now opens for anybody holding its address. If the path was the problem, it stays broken either way.
Why is the path wrong when I saved it straight from the upload?
Because upload hands back two paths. path is where the file sits inside the bucket, and fullPath starts with the bucket name. Code that saves fullPath and later passes it to .from('avatars') is asking for avatars/avatars/..., a file that does not exist. Save path instead.