[Zope] File Upload/REQUEST Question

Roché Compaan roche at upfrontsystems.co.za
Sat Jul 3 03:38:12 EDT 2004


* Jonathan Cyr <cyrj at cyr.info> [2004-07-02 23:25]:
>  Hello,
> 
> I recently came across a very-cool uploader, called RAD Upload Applet, 
> from http://www.radinks.com.  Its a signed HTTP Uploader that provides a 
> drag n drop target on a webpage, that manages multiple uploads with 
> status bars and is quite nice.  It's obviously client-side Java, but the 
> authors have encoded the REQUEST data as 'userfile[0]' and 'userfile[1]' 
> and so on.  When I view the REQUEST, they show at ZPublisher File Upload 
> objects, but I can't seem to get at them because of the brackets in the 
> literal.  It tries to resolve them as a list, when in fact they're an array.
> 
> How do I access them in either a Python Script or DTML Method with this 
> bracket problem?  What should I try next?

Subscript with the exact string literal:

    REQUEST['userfile[0]']

-- 
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za


More information about the Zope mailing list