Im trying to upload a file using a LotusScript agent for the backend - I have a simple form with an upload control on it and am using AJAX to submit the form (using YUI Connection Manager) to the LotusScript Agent (POST).
In the LotusScript agent I am getting the request_content field - but am unable to translate that into a file.
Has anyone done this ? This is the output the request_content field shows at the moment
-----------------------------25102100326869 Content-Disposition: form-data; name="__Click" 0 -----------------------------25102100326869 Content-Disposition: form-data; name="fileUpload"; filename="vannes map.JPG" Content-Type: image/jpeg Ï Ó IF ·· ` ` ¦ C ec ·· $.' ",#(7),014开发者_JAVA百科44'9=82<.342 ¦ C· 2!!222222222222222222222222222222
It would be far, far easier to submit to a Form that has an upload control on it and uses a WebQuerySave agent to move the attachment it creates and set the SaveOptions to "0" to prevent the document save.
精彩评论