image-uploader icon indicating copy to clipboard operation
image-uploader copied to clipboard

Can't delete uploaded images

Open JakeSteam opened this issue 7 years ago • 0 comments

Uploading and serving images is simple, but there's no way to delete them afterwards!

A very naive implementation would be:

function delete($identifier) {
    if ($this->exists($identifier)) {
        unlink($this->getImagePath($identifier));
    }
}

JakeSteam avatar Oct 30 '17 00:10 JakeSteam