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

Could not upload to s3 anymore #77

Open
jhnferraris opened this issue Oct 28, 2016 · 1 comment
Open

Could not upload to s3 anymore #77

jhnferraris opened this issue Oct 28, 2016 · 1 comment

Comments

@jhnferraris
Copy link

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?

@ousmaneNdiaye
Copy link

I am having the same issue... did you find a solution ? @jhnferraris

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants