I keep getting " 'url' is valid but upstream response is invalid" when I try to fetch the preview using storage.getFilePreview
I am passing all the parameters correctly and the access at bucket level is set to CREATE for All Users and at file/image level it's set to READ, UPDATE, DELETE for the user that uploaded the file.
Yet I keep getting this error with a 404 status code
Summary
The user is unable to access the images stored in a bucket. They are getting a 404 error when trying to fetch the image preview using storage.getFilePreview. They have checked the documentation and their code, and everything seems to be correct. They are passing all the parameters correctly and have set the appropriate access levels at the bucket and file/image level. They are using emailSession instead of JWT. It is suggested to check if the JWT is being passed correctly using setJWT. Private files cannot be accessed without a JWT.