Set Value of File Upload Control

I have a form that contains a text field and a File Upload control, which is used to allow the user to store a message and a graphic that is displayed on the web.

I would like to provide the user with the ability to edit the message. When I access the form, I run an agent on WebQueryOpen to pick upi the existing text and place in the text box. Can I get the attachment address and display it in the File Upload control as well, in case the user wants to change this as well?

Any ideas or suggestions would be greatly appreciated - thanks in advance.

Subject: Set Value of File Upload Control

No – for security reasons, the File Upload control (or any element) is read-only for code in all browsers. (Think about what could happen if a malicious programmer decided to write a bunch of hidden file inputs to the page. In JS, they could guess at the locations of sensitive files, in VBScript they could actually mine your system. Either way, this poses an unacceptable security risk, so it is never allowed.)

Subject: Set Value of File Upload Control

When u say edit the message, are you not editing the document already created ? In that case what data does the document already contain (in terms of the text field and attachment) ?