≈ the.bay.news

My photo.jpg Was a 29-Byte HTML Page: Validating Downloaded Images Before They Reach Production

DEV Community
My photo.jpg Was a 29-Byte HTML Page: Validating Downloaded Images Before They Reach Production
curl exited 0 and every .jpg was an HTML error page. Why HTTP errors aren't curl errors, and the checks (status, content type, magic bytes, decoding, live URL) we now run before an image is published.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.