Storage exists is not working in s3 #53085
Unanswered
Rignesh-Sarvaliya
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
8.40
PHP Version
7.4
Database Driver & Version
No response
Description
Storage::disks('s3')->exists()
is not functioning correctly when using Amazon S3 as the storage driver in a Laravel project. The method consistently returns false, even for files known to exist in the specified bucket.I understand that this version is no longer supported. However, this issue just recently started happening after the functionality was working fine for a while. It was working just 2 days ago, but now I can't understand why it suddenly stopped. Nothing has changed in terms of configuration or permissions, and the issue seems to have appeared out of nowhere.
Any thoughts on what might have caused this?
Steps To Reproduce
Configure Laravel to use S3 as the storage driver.
Upload a file to the S3 bucket using
Storage::disks('s3')->put()
.Call
Storage::disks('s3')->exists('path/to/file')
for the uploaded file.Beta Was this translation helpful? Give feedback.
All reactions