I am writing an HTML form that is using the type=file attribute to collect an image from the user. I am also collecting other information and then formatting it on a page in a preview mode. I would like to allow the user to preview their data, with an image, before they elect to save it (in Zope).
The problem, I think, is that the IMG tag needs a physical file to point to in order to render the image. Given that the image object is of type FileUpload, once the user presses the submit button, is there a way to display that FileUpload Image without actually saving it in Zope?
Thanks for any suggestions,
Chris
I am also intereested in doing this. My experience with other content management systems is that you have to do the write somewhere so the IMG tag can show it. Usually all you get in the page that has been posted to is some form of the binary content of the file, which the IMG tag can't use. Assuming zope does something similar, To do what you want to do would require modifying how zope handles the form post internally so that inputs of type "file" are treated differently, and writing them somewhere the IMG tag can get to them.
-Garrett
On Tue, 18 Apr 2000, Chris Crownhart wrote:
I am writing an HTML form that is using the type=file attribute to collect an image from the user. I am also collecting other information and then formatting it on a page in a preview mode. I would like to allow the user to preview their data, with an image, before they elect to save it (in Zope).
The problem, I think, is that the IMG tag needs a physical file to point to in order to render the image. Given that the image object is of type FileUpload, once the user presses the submit button, is there a way to display that FileUpload Image without actually saving it in Zope?
Thanks for any suggestions,
Chris
Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-Garrett
I am using a <dtml-in> to walk through a catalog and display the results for a given query. When someone clicks on an item in a list, I would like to be able to pass the id of the item above it and below it. For example,
Given this result set:
Title Desc ----- ------------------ Item 1 This is item 1. Item 2 This is item 2. Item 3 This is item 3.
If the user click on Item 2, I want to pass the id of Item 1 and Item 3 to the next page. Does either dmtl-in or ZCatalog provide a variable that stores the id's for those (i.e. something like 'sequence-1' and 'sequence+1')?
Thanks,
Chris