Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace old image #13

Closed
quaidesbalises opened this issue Oct 4, 2018 · 2 comments
Closed

Replace old image #13

quaidesbalises opened this issue Oct 4, 2018 · 2 comments

Comments

@quaidesbalises
Copy link

quaidesbalises commented Oct 4, 2018

Sorry but I always have the same problem with the same configuration. Any help about this ?

_Originally posted by @quaidesbalises in #5 (comment)

@saqueib
Copy link
Member

saqueib commented Oct 5, 2018

I have tried with all the different options, s3, local and your s3 account too. It worked every time.

last thing I will suggest you to override following method in your model:

/**
 * Delete an Image
 *
 * @param $filePath
 */
public function deleteImage($filePath)
{
    if ($this->getStorageDisk()->exists($filePath)) {
        $this->getStorageDisk()->delete($filePath);
    }
}

put some dump($filePath) and see what it's returning, also try manually deleting an image from artisan tinker:

> \Storage::disk('s3')->delete($filePathFromDatabase);

If none works then I guess something is wrong in s3 settings.

@saqueib
Copy link
Member

saqueib commented Oct 7, 2018

@quaidesbalises please close this issue if it was resolved

@saqueib saqueib closed this as completed Oct 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant