A few minutes ago, I received a question from Peter Bormans. I advised him
to post technical questions on the developerslist, nevertheless I hope
someone is willing to give Peter an answer.
Regards,
Jo.

Dear sir, miss,

I am trying to upload an attachment trough mmbase with the following code:

<mm:createnode type="attachments">
<mm:setfield name="title">title</mm:setfield>
<mm:setfield name="handle"><mm:write referid="report"/></mm:setfield>
</mm:createnode>

where "report" is the input from a formelement <INPUT type="file"... The
file I want to load is a simple textfile. All seems to go well but there are
some problems.

First, the attachments-builders cannot determine the filetype. I assume that
filetype-detection is handled by WEB-INF/config/magic.xml, and I see no
reason why the detection fails.

Second, when mimetype is manually corrected in the database, I cannot
retrieve the file from the database. I use the following url:

<A HREF="<mm:field name="handle" />...

Am I missing something about upload and retrieval of attachments? Any help
is welcome.

Thanks,
Peter Bormans, Webmaster VFSIPH

telefoon: 02-225.86.43
fax: 02-225.84.05 (algemeen)
e-mail: [EMAIL PROTECTED]
website: http://www.vlafo.be


PS: I cannot use the chatrooms because our firewall blocks chatports.
PPS: You can respond in dutch if you like. English is ok too.

-------------------------------------------
MMEvent 2003: op 4 juni, Haagse Hogeschool.
http://foundation.mmbase.org/mmevent3
-------------------------------------------
Jo Lahaye, [EMAIL PROTECTED]
MMBase Foundation
tel. 035-6288088, 06-53292887
www.MMBase.org



Reply via email to