asp upload with width error message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fran7
    New Member
    • Jul 2006
    • 229

    #1

    asp upload with width error message

    Hi, I think there isnt a way but just thought I would ask if anyone knew if there was a way to return an error if a image being uploaded exceeded a specified width. I am sure its possible if you save to a database but not to a folder on the server. Thanks if anyone knows.
    Richard
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Originally posted by fran7
    Hi, I think there isnt a way but just thought I would ask if anyone knew if there was a way to return an error if a image being uploaded exceeded a specified width. I am sure its possible if you save to a database but not to a folder on the server. Thanks if anyone knows.
    Richard
    The only way I know of is to open the file as a binary stream and look for the size designation. I've only tried it with gifs, but the concept should work for all picture formats, you would just need to know where the size designation is on all of them.

    Jared

    Comment

    Working...