I suggest you ...

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

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Steven Schermerhorn shared this idea  ·   ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Steve Owen commented  · 

        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