mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
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 |
||
---|---|---|
.. | ||
admin | ||
content | ||
members | ||
members-comments | ||
shared | ||
webmentions |