Skip to content

Commit 9320dfc

Browse files
committed
Fixed bug where resized images not deleted (#8)
1 parent 495197b commit 9320dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function delete_file_from_bucket( $file, $bucket_name, $resized_image = n
288288
$target = $file['destfile'];
289289
if( $resized_image ) {
290290
$resized_image = parse_url( $resized_image, PHP_URL_PATH );
291-
$target = $file['destpath'] . $resized_image;
291+
$target = $file['destpath'] . '/' . $resized_image;
292292
}
293293
$args = [ 'BucketName' => $bucket_name, 'FileName' => $target ];
294294

0 commit comments

Comments
 (0)