I suggest you ...

A utility function that verifies an uploaded file is an image before saving it.

3 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Steven Schermerhorn shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Steve Owen commented  ·   ·  Flag as inappropriate

    If you use the API, DecodeStream and Build both throw exceptions if it's not a readable image. We trap that to detect for non-images.

Feedback and Knowledge Base