Ghost/ghost/core/test/e2e-api
Daniel Lockyer 3e79712466 Fixed handling malformed image + media upload requests
fix https://linear.app/tryghost/issue/SLO-94/unexpected-field-when-given-broken-image-upload-request

- in the event the body of an image or media upload request is malformed
  (broken metadata / blob or something), we get a MulterError and this
  bubbles up as an InternalServerError and spits out a HTTP 500
- we can capture this and return a BadRequestError, as it's the client's
  fault for not providing the correct body
- this implements that and adds breaking tests
2024-05-06 13:24:26 +02:00
..
admin Fixed handling malformed image + media upload requests 2024-05-06 13:24:26 +02:00
content 🐛 Fixed unexpected conversion of single-quoted attributes in HTML cards (#19727) 2024-03-06 09:11:49 +00:00
members Revert "Added new member signup flow behind labs flag (#19986)" (#20130) 2024-05-02 13:02:32 -07:00
members-comments Added /comments/:id/replies/ to X-Cache-Invalidate 2024-02-28 23:15:02 +00:00
shared Added portal default plan setting (#19238) 2023-12-06 11:39:58 +01:00
webmentions Updated to use assert/strict everywhere (#17047) 2023-06-21 09:56:59 +01:00