Hello guys,
I got it !
Here is how I did it ,
after getting the user input with
i = web.webapi.rawinput().get('myfile'),
i did simple loop
for n in range(3):
if up_form.validates():
break
for f in i:
loop returning list x (list of all uploaded files)
at the end of my file.
# I am using mako template Engine.
if x: # user uploaded something
return render.index(x = x)
else: # form is not valid.
return render.index(up_form = up_form)
Thank you.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/webpy/-/EkauarHr57MJ.
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.