mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 03:43:07 +00:00
Make sure temp file is closed (and thus deleted)
This commit is contained in:
@@ -171,6 +171,7 @@ class AttachmentHelper implements AttachmentHelperInterface
|
||||
$allowedMime = config('firefly.allowedMimes');
|
||||
if (!in_array($mime, $allowedMime, true)) {
|
||||
Log::error(sprintf('Mime type %s is not allowed for API file upload.', $mime));
|
||||
fclose($resource);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user