I've created a bucket `files` that contains one fi...
# help
w
I've created a bucket
files
that contains one file,
private.txt
and a rule allowing select access for everyone. When I call
supabase.storage.from('files').download('private.txt')
, there is no response data even though the response code is 200. Am I doing something wrong?
n
Hello @willm! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
w
.download() tells me that
private.txt
exists even though it doesn't, and that
test.jpg
does not exist even though it does...
g
Your two comments don't make sense. In one you say you have private.txt in the bucket and in the next you say it doesn't. Maybe your policy is not set correct. Also note that if you get the data once it will be cached for default 1 hour. Even if you add a policy blocking it would still come thru.
w
it was a caching problem and I was very confused... my bad
also the policy might have been incorrect
n
Thread was archived by @willm. Anyone can send a message to unarchive it.