I cannot get Domino's built-in File Upload Control to function (or even
display) on the "Comment" Subform. So I have resorted to trying to "spoof"
Domino's FUC manually with JS.
Domino's built-in File Upload Control creates the <input> tag, and generates
name= on the fly. Domino will not save the attachment (correctly) to the
document unless it has name="%%File*******************************.$Body.0.***".
I can copy a Domino generated name=, and hardcode that value into my manual
file upload tag, like so:
<input type="file" name="%%File2b8bdadd0d4e57a680256c1a0065d5f1.$Body.0.CDA">
This actually works perfectly, but only temporarily, between 1 and 3 times.
Then it begins to return this error upon submit:
HTTP 500 - Internal server error
The easiest solution would be to get Domino's built-in FUC to work. Otherwise,
I need to figure out how Domino generates the name= parameter, and then it
would be a simple computed text area. (I have searched the LDD forum, and no
one has been able to figure out how domino generates this)
Subform "Comment": START OUR OWN FORM <form action="Response?CreateDocument&ParentUNID=<Computed Value>" method="post" onsubmit="return validatePost(this);" enctype="multipart/form-data" > <table style="width: 450px;"> <tr> <td> From: </td> <td> <input name="From" type="text" value="<Computed Value>" /> </td> </tr> <tr> <td> Subject: </td> <td> <input name="Title" type="text" value="<Computed Value>" /> </td> </tr> <tr> <td> Comment: </td> <td> <textarea name="Body2" type="text" cols="40" rows="4" /></textarea> </td> </tr> <tr> <td> Upload File: </td> <td> <input type="file" name="%%File2b8bdadd0d4e57a680256c1a0065d5f1.$Body.0.CDA"> </td> </tr> <tr> <td> </td> <td> <input type="button" class="button" value="Post!" onclick="if ( this.form.onsubmit() ){ this.form.submit() }" /> </td> </tr> </table>
I cannot get Domino's built-in File Upload Control to function (or even display) on the "Comment" Subform. So I have resorted to trying to "spoof" Domino's FUC manually with JS.
Domino's built-in File Upload Control creates the <input> tag, and generates name= on the fly. Domino will not save the attachment (correctly) to the document unless it has name="%%File*******************************.$Body.0.***".
I can copy a Domino generated name=, and hardcode that value into my manual file upload tag, like so: <input type="file" name="%%File2b8bdadd0d4e57a680256c1a0065d5f1.$Body.0.CDA">
This actually works perfectly, but only temporarily, between 1 and 3 times. Then it begins to return this error upon submit: HTTP 500 - Internal server error
The easiest solution would be to get Domino's built-in FUC to work. Otherwise, I need to figure out how Domino generates the name= parameter, and then it would be a simple computed text area. (I have searched the LDD forum, and no one has been able to figure out how domino generates this)
Any ideas?