check if object exists in s3 bucket laravel
$info = $client->doesObjectExist($bucket, $FileName)
if ($info)
{
echo 'File exists';
}
else
{
echo 'File does not exists';
}
check if object exists in s3 bucket laravel
$info = $client->doesObjectExist($bucket, $FileName)
if ($info)
{
echo 'File exists';
}
else
{
echo 'File does not exists';
}
check if object exists in s3 bucket laravel
Gets whether or not the specified Amazon S3 object exists in the specified bucket.
AmazonS3 doesObjectExist
$s3 = new AmazonS3();
$bucket = 'my-bucket' . strtolower($s3->key);
$response = $s3->doesObjectExist($bucket, 'test1.txt');
// Success? (Boolean, not a CFResponse object)
var_dump($response);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us