This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


May 2, 2016, 1:47 PM
41 Posts

Uploading files from HTML form to Notes database

  • Category: Domino Server
  • Platform: Windows
  • Release: 9.0.1
  • Role: Administrator,Developer
  • Tags: HTML,Domino 9.0.1
  • Replies: 2

Hello Everyone.

 

I have a web page built in HTML that I am using for online-submissions. The submitted page ends up in a Notes database.

I have added an upload attachment option to the HTML page. However, when the attachment is submitted, it ends up in Notes as text, rather than the attachment.

Hence, files like Word docs, end up as a load of gibberish.  The field that the attachment is sent to is Rich text.

Can anyone suggest how I resolve this ?

 

Here is my code: 

 

<form method="post" enctype="multipart/form-data" action="/webquote.nsf/gendoc?createdocument"   >

Attachment: <Input Type="file" NAME="Attachments" MAXLENGTH=50 ALLOW="text/*" > 

 

May 2, 2016, 2:34 PM
323 Posts
Well, Domino has a file-upload control to handle the attachment conversion.

I'm not sure how that impacts your design, but there's an Embedded Element - File Upload control you can create in a form. It basically receives a file and attaches the file to a document.

If this HTML is on a form, maybe ... drop the pass-thru HTML, embed the file upload control, then re-enable for later HTML.

If it's on an XPage I think there's something for XPage too. Unfortunately I'm away from Designer right now.

I believe it uses HTTP protocol for the attachment, which by default is limited to something like 10 MB on the server. So if you want to go over 10 MB ... you'll need to increase that limit, too.

May 2, 2016, 4:33 PM
41 Posts
Uploading files from HTML form to Notes database

Hi Mike.

Thanks for your reply.

I added a file upload control to the Notes form, viewed the source in a web browser and took the code to add to my HTML file, which is outside of Notes. Hey presto, the attachments are working, albeit attached to the bottom of the Notes form, but I can live with that.

Cheers !


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal