Looking for a nice file upload control
There are a few things special about all recent Domino applications: they all render XHTML 1.0 Strict. This works fine with normal pages in read mode, but when you are building an application, you soon find out that you have to change your ways:
- A form with content type other than 'Notes' can only be opened in read mode, as
$$..Templatesor with query?readform. - Documents with that content type cannot be opened in edit mode. They can be saved however.
- The
$$Return..Error/Failureforms just ignore any type. They are always content type 'Notes'. Someone just forgot them. - You loose Notes generated rich text. All NotesRichText fields are treated as normal text fields.
- You loose the view navigation.
- And the worst: there is no easy way to render file upload controls.
Changing my ways
If you look closely to the URLs of my Domino Workspace, you will notice that instead of creating a new document with .../document?openform I use .../document?readform instead. The form itself is generated in the QueryOpen agent. But for file upload controls, this poses a real problem.
The File Upload facts
On codestore.net, I found out the syntax the Domino server uses to render the file upload control. This syntax is a server setting you can disable, as explained again on codestore.net: Adding Your Own File Uploads to Forms.
The solution
Ferdy Christant has Mimic the Domino file upload control. I very much like the approach of Vince DiMascio: Managing Domino File Attachments the Ajax Way. I am still thinking of a solution that also works without Ajax. Need more time. Sorry, no new code for now.
Comments
To add a comment, log in or register as new user. It's free and safe.