Post a file to an agent from an html form: how to?

Hi all, I just need to send a file from an html form to an agent and save it in a Notes document?

How can I do this?

I send the data with this “Content-Type:multipart/form-data” but I don’t know how to handle it on a LotusScript agent.

Can someone help me?

Thanks in advance

Marco Fabbri

Subject: Post a file to an agent from an html form: how to?

The answer lies upon you designing a website to do it. First use the file upload module for the form. Second make a webquerysave event to be tied to a lotusscript agent.

Viola you now have a file given to an agent.

Subject: RE: Post a file to an agent from an html form: how to?

Sorry but my problem is to send the file from an html form not from a Domino form.

I haven’t the file upload control, just the tag and an agent that have to catch the file and insert it into a Notes document.

How can I do that? Where can I find the file in the document.context variable?

Subject: RE: Post a file to an agent from an html form: how to?

Is the HTML form being hosted on domino?

Subject: RE: Post a file to an agent from an html form: how to?

May be; it can be or not.Where is the difference?

Subject: RE: Post a file to an agent from an html form: how to?

because you can have lotusscript look for the file on the server. There are many ways to send a file to a server on various web servers. So if the html form is hosted on domino you can have a lotusscript agent just look for the file in a specific directory (saving you the need to worry about sending the file to the agent).

Otherwise, it would be helpful to know more about how you expect to have the file be sent to the server because there are a number of ways to approach this.