Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing http header to determine size and type of file being submitted

Status
Not open for further replies.

spastica

Programmer
Sep 27, 2002
72
0
0
GB
i have a form which allows users to submit photographs via email (the mail is sent out through the web server). before uploading the image onto the web server to send the mail - i want to check to make sure it is of a certain size and type, and reject any images which do not meet those requirements.

is there a way to do this? i am thinking of using the http header to get this info, but have not had much luck decoding it so far. any suggestions?
 
A search on "pure asp upload" should yield the complete code for extracting Base64 encoded files out of the HTTP Request into byte arrays and then saving them to disk as binaries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top