logo

New Response

« Return to the blog entry

You are replying to:

  1. There is also this from 2004:

    {Link}

    Which lead to this, with a fantastic working example:

    {Link}

    None of which is comprehensible to me :-(

    I sure don't want to copy an offset and hope it works when design refreshed into another database and replicated out to another server, and I sure don't want to mess with ini settings and open up potential security holes, even if I could.

    What I have is a simple form laid out in html, built in Domino Designer with Notes fields for each html input field, which gets me everything into a Notes document very nicely. I do it this way to get better control over everything about the page, which doesn't seem very common, and which doesn't let me use the built in File Upload Control everyone talks about which does work nicely (pass-through Notes-content?).

    Then I put a type="file" input on it. Then I submit it to Domino. All that comes through is the file path, as displayed in the browser. :-(

    With entype="multipart/form-data", I get the contents of the file! Hurray! :-)

    But what I want is the file as an attachment.

    It works great as is for text files, the contents appear in whatever field name I give to my input type="file". But for an image or anything else, I get the gibberish you would expect.

    If Domino handles any other type of field, why not take type="file" and create a rich text field with the file as an attachment? Then I would be playing with power! There seems to be no need to mess with offsets and whatnot, the contents of the file are making it to the right place, they just aren't being handled sensibly :-(

    Any magic sauce I can sprinkle on what I have so far to take it that last step over the finish line? I have the contents of the file, any way to transform that into an attachment? Without messing with the file system or ini files and such?

    Just taking a gamble posting here, you never know...

    I hope the other links I've found helps someone else (smarter than me!) by bringing it all together. Heaps of praise on anyone who comes along and fills me in on the (fantasy?) final step to wrap this up. Wish me luck!

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: