mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 03:04:36 +00:00
Also delete downscaled image files when deleting an image (closes #1499)
This commit is contained in:
@@ -25,12 +25,7 @@ class FilesApiController extends BaseApiController
|
||||
throw new \Exception('Invalid filename');
|
||||
}
|
||||
|
||||
$filePath = $this->getFilesService()->GetFilePath($args['group'], $fileName);
|
||||
|
||||
if (file_exists($filePath))
|
||||
{
|
||||
unlink($filePath);
|
||||
}
|
||||
$this->getFilesService()->DeleteFile($args['group'], $fileName);
|
||||
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
|
Reference in New Issue
Block a user