Ghost/ghost/core/test
Daniel Lockyer 7950122ffe Protected against deleting non-existent image during upload
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
2024-05-02 17:29:03 +02:00
..
e2e-api Protected against deleting non-existent image during upload 2024-05-02 17:29:03 +02:00
e2e-browser 🐛 Fixed admin error when deleting an unsaved or imported post (#20053) 2024-04-18 10:02:02 -07:00
e2e-frontend
e2e-server Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00
e2e-webhooks
integration 🐛 Fixed file card button not being linked in emails (#20023) 2024-04-16 10:37:28 +00:00
regression Updated staff deletion logic (#20069) 2024-04-25 08:19:11 -05:00
unit Added timeout when resizing an image (#20087) 2024-04-30 08:39:30 +01:00
utils
.eslintignore Added Source as the new default theme 2023-10-03 14:02:08 +02:00
.eslintrc.js Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00