Upload file via HTML to Domino database

Hope someone can help.

I am creating an online application form in HTML format, with the ability to add attachment downloads. The resulting data ends in the Notes / Domino database.

I managed to process the HTML form with the upload button. However, looking at the received data, instead of having an attachment in the text field of the Notes form, I get the contents of the attachment. This is normal if it is a text document. However, when it is a Word / Excel document, it ends as gibberish.

Can anyone suggest what is wrong?

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/*" > 

Thank,

Simon

+4
source share
2 answers

, :

<form name="SubmissionForm" id="SubmissionForm" action="/<Computed Value>/AgencySubmission?CreateDocument" method="post" enctype="multipart/form-data">
<input type="file" name="%%File.1">

. , , , Rich Text, , .

jQuery Ajax, .

0

xPage. , , HTML, - , Domino , ?

<input> , .

"allow"? . ""? "text/*"? giberish, / Domino , blob. "multipart/form-data", , , "" "" .

Domino, Domino, "name" <input> "%% File.1", <input type="file" name="%%File.1">

<form> .

, , , Domino , error 500 "HTTP Web Server: File Upload Not Allowed Exception". Domino notes.ini:

DominoDisableFileUploadChecks=1

. , .

0

All Articles