deleting a file from an Image Storage location did not delete the thumbnail
This commit is contained in:
parent
531a53f4dc
commit
8faf7951d0
2 changed files with 23 additions and 0 deletions
|
|
@ -95,6 +95,27 @@ sub copy {
|
|||
return $self->SUPER::copy($newStorage, $filelist);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 deleteFile ( filename )
|
||||
|
||||
Deletes the thumbnail for a file and the file from its storage location
|
||||
|
||||
=head3 filename
|
||||
|
||||
The name of the file to delete.
|
||||
|
||||
=cut
|
||||
|
||||
sub deleteFile {
|
||||
my $self = shift;
|
||||
my $filename = shift;
|
||||
$self->SUPER::deleteFile('thumb-'.$filename);
|
||||
$self->SUPER::deleteFile($filename);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 generateThumbnail ( filename, [ thumbnailSize ] )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue