Well, thanks to an enterprising fellow on #webpy, I'm a little closer,
and learned a bit more...
He told me that in the POST method:
def POST(*args):
myfilenames = ('myfile', 'myfile2')
myfiles = {}
for k in myfilenames:
myfiles[k] = {}
x = web.input(**myfiles)
return x['myfile'].filename, x['myfile2'].filename
It seems to me that there should only be one dereference in the call
to web.input though...double dereference gives the error "TypeError:
input() keywords must be strings".
So, with a single dereference, it goes past the web.input call, and on
to my code...but web.input doesn't seem to know how to do the magic of
linking the data of the file uploaded with the objects. I get the
error "AttributeError: 'dict' object has no attribute 'value'" when I
try to refer to the value of the file uploaded.
Any ideas? I will provide a code sample in another post.
-Ken
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---