“Compruebe si existe el objeto en el cubo S3 Laravel” Código de respuesta

Compruebe si existe el objeto en el cubo S3 Laravel

$info = $client->doesObjectExist($bucket, $FileName)
if ($info)
{
echo 'File exists';
}
else
{
echo 'File does not exists';
}
Anxious Anteater

Compruebe si existe el objeto en el cubo S3 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);
Anxious Anteater

Respuestas similares a “Compruebe si existe el objeto en el cubo S3 Laravel”

Preguntas similares a “Compruebe si existe el objeto en el cubo S3 Laravel”

Más respuestas relacionadas con “Compruebe si existe el objeto en el cubo S3 Laravel” en TypeScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código