mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
7950122ffe
fix https://linear.app/tryghost/issue/SLO-93/undefined-path-error-with-bad-image-upload - in the event we receive a request to upload an image, that doesn't contain an image, we still try and unlink the files - this is a dangling promise, so it doesn't cause an explicit HTTP error, but it does show up as a console error - fixed it by checking for the path, and early returning if it doesn't exist - also added a test that would fail without this |
||
---|---|---|
.. | ||
content | ||
core | ||
test | ||
.c8rc.e2e.json | ||
.c8rc.json | ||
.eslintignore | ||
.eslintrc.js | ||
.npmignore | ||
config.development.json | ||
ghost.js | ||
index.js | ||
jsconfig.json | ||
loggingrc.js | ||
MigratorConfig.js | ||
monobundle.js | ||
package.json | ||
playwright.config.js |