开发者

AJAX File Upload to LotusScript Agent

开发者 https://www.devze.com 2023-02-04 15:02 出处:网络
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 Lotu

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号