[Zope] Artificially create a fileupload instance or batch convert ExtImages

Dieter Maurer dieter@handshake.de
Mon, 11 Feb 2002 22:36:52 +0100


Tim Hicks writes:
 > Is there an easy way to create a fileupload instance from a string?  I am
 > trying to batch convert a load of ExtImage files to give them all different
 > sized preview images, but manage_addExtImage() doesn't accept a string.
I am a bit lazy - otherwise, I could look it up for you ;-)

  "FileUpload" objects are defined in "ZPublisher.HTTPRequest".
  The constructor wants a "cgi.FieldStorage" as an argument.
  Look there, how to get a "FieldStorage" from a string...


Dieter