Detaching the attachment from file upload control

Hi,This is my req:

I created a form with field File upload control

& I attached the two Files on it

How can I detach these files from document and store in some drive (C:\…. or D:….)

And this detached file path store in document

This is for WEB APPLICATION

reg

ram

Subject: Detaching the attachment from file upload control

You would do this with a web query save agent.Set db = session.CurrentDatabase

server = db.server

attachlist = Evaluate(“@AttachmentNames”, doc)

attachnum = Evaluate(“@Attachments”, doc)

count = Cint(attachnum(0))

Redim vfiles(count) As String

cnt = 0

If (count > 0) Then

Forall v In attachlist

filename = v

Set inputAttachment = doc.GetAttachment ( fileName )

tempDirectory = session.GetEnvironmentString ( “Directory”, True )

filePath = "E:\attach" + fileName

Call inputAttachment.ExtractFile ( filePath )

Call inputAttachment.Remove

End Forall

Call doc.RemoveItem ( “$File” )

Subject: RE: Detaching the attachment from file upload control

Hi,Steve Galentine ,

thnx for u grate responce

but this code is not working …

i did as u told !!!

my mail id :hairam4u@rediffmail.com

plz give me u r mail id

Reg,

ram