Re: [Zope] Problem to init a DTML Document by uploading a file

2000-06-23 Thread andres
On Thu, Jun 22, 2000 at 02:18:35PM +0200, Frédéric Quin wrote: Hi all, I did'nt manage to init a DTML Document by uploading a file. I wrote : dtml-call "manage_addDTMLDocument('my_id_html','','/home/index.html') I tried too : dtml-call

Re: [Zope] Problem to init a DTML Document by uploading a file

2000-06-23 Thread andres
Sorry, Forgot to add that method="post" is also required in the FORM tag before a file contents is sent along in a posted form. So the required syntax is: FORM ... enctype="mulipart/form-data" ... method="post"... Otherwise, the file-selection field in the form acts like a regular text field.

[Zope] Problem to init a DTML Document by uploading a file

2000-06-22 Thread Frédéric Quin
Hi all, I did'nt manage to init a DTML Document by uploading a file. I wrote : dtml-call "manage_addDTMLDocument('my_id_html','','/home/index.html') I tried too : dtml-call "manage_addDTMLDocument('my_id_html','',file='/home/index.html') And also : dtml-call

Re: [Zope] Problem to init a DTML Document by uploading a file

2000-06-22 Thread Oleg Broytmann
On Thu, 22 Jun 2000, Frédéric Quin wrote: Zope always creates a DTML Document and init his body with the path of the file : it never uploads the file... Zope should not download the file itself - imaging the situation when you work on one computer, and Zope on another. What is the file