Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.

Could not upload to s3 anymoreΒ #77

@jhnferraris

Description

@jhnferraris

Hello,

We're currently using this library for quite sometime now and suddenly it won't allow us to upload images to s3.

Here's our "legacy" code.

    $sendResult = $s3->create_object($bucket, $filename, [
      'fileUpload'  => $localFilePath,
      'acl'         => \AmazonS3::ACL_PUBLIC,
      'contentType' => \Raika\File::getMimeType($localFilePath),
      'headers'     => [
        'Cache-Control' => 'max-age=31536000', // Cache for one year
      ]
    ]);
    if (!($ret = $sendResult->isOK())) {
      \Yii::log("Failed uploading to S3: $bucket/$filename", \CLogger::LEVEL_ERROR, __CLASS__);
    }

Files are existing locally that only lead me to the assumption that there's something with wrong with s3.

Is this library still expect to work or is there something wrong with s3?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions