[thelist] ASP form mail (supporting FILE input)
Ken Schaefer
Ken at adOpenStatic.com
Wed May 25 20:09:41 CDT 2005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: thelist-bounces at lists.evolt.org [mailto:thelist-
: bounces at lists.evolt.org] On Behalf Of Chris Kavanagh
: Subject: [thelist] ASP form mail (supporting FILE input)
:
: I need a form mailer that works in ASP (cos that's what the client
: has). I found a nice simple tutorial, but partway through noticed
: this caveat:
:
: > You should note that FILE input types are not supported by the
: > script as ASP has no built-in methods for easily dealing with files
: > uploaded from forms.
: That's bad news to me because my form requires a FILE input. Can
: anyone offer me some advice? The simpler the better, please, because
: ASP isn't in my skill set.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASP has a Request.BinaryRead() method [1] that allows you to read binary
content. However, if you then need to separate out other, non-binary content
you will have to do this manually (which is a bit tricky). You could handle
this by having a separate, pop-up window when the user can upload file(s)
(like most web mail apps). Alternatively, look at either ASP.NET -or- a 3rd
party upload component.
Cheers
Ken
[1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/
c84b1f88-1a8a-4370-95de-e907f7fdd5e7.asp?frame=true
--
www.adOpenStatic.com/cs/blogs/ken/
More information about the thelist
mailing list