如何从文档上下文获取附加文件(处理上传文件的请求)多米诺骨牌
我是多米诺骨牌新手。
我试图在多米诺骨牌的Java代理中处理文件上传请求。 我认为它应该是文档上下文中的嵌入对象,但它不在那里。 我不知道有什么其他方法,有没有办法获取作为发布请求发送的文件?多米诺骨牌是如何处理的?
谢谢
I am new to domino.
I trying to handle a file upload request in Java agent of domino.
I assumed that it should be an embedded object in document context, but it is NOT there.
I don't know any other way, Is there a way to get the file which is sent as a post request? How does the domino handles it.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
上传文件的简单解决方案就是创建一个包含 FileUpload 字段的表单,然后在 QuerySave 代理中移动或处理文件。不要认为您可以将文件上传到网络代理。
好的链接:
如何:从 Flex 将文件上传到 Domino
将您自己的文件上传添加到表格
/不再有太多新鲜事了
The simple solution to uploading files is just to create a Form containing a FileUpload field and then move or process the file in the QuerySave agent. Don't think you can upload files to and web agent.
Good links:
How To: Upload Files To Domino From Flex
Adding Your Own File Uploads to Forms
/Not soo much newb anymore
附件很可能嵌入到文档中的 RichText 元素中。要访问它,请迭代 document.items 并找到 RIHTEXT 类型的项目。然后您可以检查它是否有嵌入的对象。
有一个有用的多米诺骨牌对象映射
此处 /Newbs
Most likely the attachment is embedded into a RichText element in the document. To access it, iterate through the document.items and find an item of type RICHTEXT. Then you can check it for embedded objects.
There is a useful domino object map located here
/Newbs