How to get every file name when i post many files to web.py?
furthermore, i don't know the name in form. for example, I post three
files through the following form:
------------------------------------------------------------------------------------------------
<form name="form" enctype="multipart/form-data" method="post">
<p>
<input name="aname" type="file" size="80" maxlength="80">
<input name="othername" type="file" size="80" maxlength="80">
</p>
<p> <input type="submit" name="Submit1112" >
</p>
</form>
------------------------------------------------------------------------------------------------
At the web.py, I can get the file name by the word: "aname", and get
the other file name by the word: "othername", the code is:
================================================
data = web.input(aname={})
print data.aname.filename # get one file name here
data = web.input(othername={}) # get another file name here
================================================
but, if the form data is dynamic, and I don't know the name in the
attribute of 'input'. In other words, when I coding, I don't make
certain what name will be used in the form. Under the condition, How
can I get the every file name when i post many files to web.py?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---