-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloaded file after from.upload() upsert is always the same. Error replacing file. #119
Comments
This is likely do to caching in the browser/cdn. |
I have read my way through your linked issue but couldn’t find and understand what to do about it? What do you mean by “cache busting string works in download”? Can i Force delete the cache when downloading? And if yes how in my example? |
This was the issue I submitted: supabase/storage#116 |
Thank you @GaryAustin1 for why this issue is currently happening! |
I am facing the same issue here. I am uploading an image using the I am not using download but instead I am just getting the public url to be stored in the user images table. To fix the issue I stored the publicUrl something like this |
Bug report
Describe the bug
I'm downloading an image file with
.from(bucket).download(path)
after replacing the image with.from("avatars").upload(filePath, file, { upsert: true });
but the downloaded file is always the same. Only if I delete it and upload a new one it's downloading the newly uploaded file.To Reproduce
The image is the uploaded one and looks good. Now replace the image in the next step.
Upload a new image under same name and same path:
The image is still the old one and won't show the new one. The
from().download()
function won't return the new image on storage.Expected behavior
from().download()
always returning the newest storage file.System information
The text was updated successfully, but these errors were encountered: