[Zope] Help

Dieter Maurer dieter@handshake.de
Tue, 6 Nov 2001 23:31:13 +0100


Scott Kuei writes:
 > Hi,
 > I have created two dtml scripts to upload an image. The first script is
 > to give the promp to users to upload their image and then call the
 > second script as an action. But everytime when I click on the Sumit
 > Query button, it just keeps loading non-stop. It doesn't give me any
 > error messages, but just keep uploading. Can anyone help me?
 > 
 > my scripts:
 > 
 > Id: SubmitImage
 > 
 > <dtml-var standard_html_header>
 > 
 >       <h2><dtml-var title></h2>
 > 
 >       <p>Upload a picture to the MGL Image Archive.</p>
 > 
 >       <form action="photoAction" method="post"
 >       enctype="multipart/form-data">
 >       <p>Title: <input type="text" name="photo_title"></p>
 >       <p>Description: <input type="text" name="description"></p>
 >       <p>File: <input type="file" name="file"></p>
 >       <input type="submit">
 >       </form>
 > 
 >       <dtml-var standard_html_footer>
 > ----------------------------------------
 > Id: photoAction
 > 
 > <dtml-var standard_html_header>
 > 
 >       <h2><dtml-var title></h2>
 > 
 >       <dtml-call
 >         expr="someFolder.addImage(id
 >             , title=photo_title
 >             , file=file
 >             , description=description
 >             )">
 > 
 >       <p>The image submission is done successfully.</p>
 > 
 >       <dtml-var standard_html_footer>
The "id" parameter to "addImage" looks a bit strange.
Should it no be variable?

If it is fixed, you will get an exception from the second
upload on. Msybe, there is a bug in "standard_error_message"
used to report the error?


Dieter