[Zope] upload file and edit it in place?
Milos Prudek
milos.prudek@worldonline.cz
Mon, 03 Sep 2001 17:40:19 +0200
I need to allow users upload a text file, and edit it. Like this:
<form action="&dtml-URL0;" method="post" enctype="multipart/form-data">
<textarea name="file" cols="50" rows="8">
<dtml-if file>
<dtml-var file>
</dtml-if>
</textarea><br>
<input type="file" name="file" size="25" value=""><br>
<input type="submit" name="submit" size="25" value="Go!">
</form>
But it does not work as desired. Although I use
enctype="multipart/form-data", it still displays "[' ',
<ZPublisher.HTTPRequest.FileUpload instance at 873b710>]" within
textarea.
How can I make it display the contents of uploaded data?
--
Milos Prudek