Storage.from.exists throws an error when the file doesn't exist in the bucket #1363
Open
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
The storage.from().exists() method returns false AND an exception if the file doesn't exist. This doesn't seem like correct behavior. If the cause of the error was only that the file doesn't exist, this api should return
data: false
,error: null
. The error should only be set if it is a true error.To Reproduce
Expected behavior
Result should not contain an error simply if the file doesn't exist. Error should only be set if there is a true error.
If the file doesn't exist
Screenshots
System information
Additional context
The text was updated successfully, but these errors were encountered: