Urgent! Email uploaded attachements - Web

Hi All,Attachments are uploaded on the web by the user using fileupload control. Next when the user hits the submit button on the webdocument, I need to send an email (via different document i.e. memo doc) with these attachements. This is done in the webquerysave agent.

A) I cant extract files to a shared drive as I dont want the web user to have access to the drive (plus the domino server is AS400).

Infact I tried extracting files to the shared drive but couldn’t (if the agent is run manually this works fine but does not for agents run as webuser or scheduled agents).

B) I tried transfering the attachments (embedded object using copy item) that didnt work.

C) I tried transfering all the webdoc items to the memo document that didnt work either.

At this point I have run out of ideas Appreciate if any of you could help.

Thanks

Satyajit

Subject: Urgent!!! Email uploaded attachements - Web

You don’t have to detach files to a shared drive, you just detach them to the Domino server. I’m pretty sure I was able to do this when we had an AS400 before - now we have a Windows server and I use the following for the path:

"d:\lotus\domino\data"

Subject: RE: Urgent!!! Email uploaded attachements - Web

Rather than hard-coding a path, use the system TEMP location obtained via:

Environ(“TEMP”)

or

Environ(“TMP”)

(I forget which one works better on AS400 :wink:

But I still don’t see why you have to detach to the file system at all. Did you try locating the uploaded attachments using @AttachmentNames.

You could copy them to a new document using notesDocument.copyAllItems(targetDoc) and then change the Form field etc on the targetDoc as required.

To get a handle on uploaded attachments via LotusScript, refer to these postings:

http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/67dcc9998113b46885256d8d006831db?OpenDocument

http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/849854e43f6923b485256ca300382230?OpenDocument

Subject: RE: Urgent!!! Email uploaded attachements - Web

Hello Satyajit,

sorry for asking this but there is a new agent property when using Domino 6. The agent might need more access rights to do what you intend. My client does not start at the moment so I cannot provide more details but there is a special setting that needs to be increased.

Sorry if this is not the case.

Cheers

Heini