frostealth / yii2-aws-s3

An Amazon S3 component for Yii2
MIT License
91 stars 56 forks source link

Can't upload and then unlink. #8

Closed ghost closed 8 years ago

ghost commented 8 years ago

To reproduce:

Yii::$app->get('s3bucket')->upload($toFile, $fromFile);
unlink($fromFile);

Uploading works by itself. Unlinking works by itself. But I can't upload and then unlink. I get "Permission Denied".

frostealth commented 8 years ago

I can't reproduce. Have you tried to use put()?

ghost commented 8 years ago

I ended up fixing it by running garbage collection between the upload and the unlink. I don't think it was a problem with your library.

On Mar 1, 2016, at 8:07 AM, Ivan Kudinov notifications@github.com<mailto:notifications@github.com> wrote:

I can't reproduce. Have you tried to use put()?

Reply to this email directly or view it on GitHubhttps://github.com/frostealth/yii2-aws-s3/issues/8#issuecomment-190716531.

frostealth commented 8 years ago

I'm glad the problem was resolved.