Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
š Addressed the issue where files in the uploads folder couldn't be dā¦
ā¦eleted in case of an error. Closes TryGhost#519 - In the scenario where a user uploaded corrupted files and attempted to scan them using gscan, an error occurred. - Previously, in this scenario, we failed to delete the uploaded file stored locally under the uploads folder. - Issue found: The identified bug was that we were only deleting the file when the promise was successfully resolved, and in the case of an error, we were simply moving to the next middleware. - Issue fixed: To resolve this issue, a finally block has been added to ensure that uploaded files are deleted in any case.
- Loading branch information