S
Shufen
Hi all,
I have a form where users can use it to upload images into a file and
save it into a directory.
I have installed PIL and Image module and do a fair bit of reading on
these module. But I don't know how can I use python to get the
uploaded image file from the form.
Can I use something like that:
######################################################
im_file = form["userfile"]
######################################################
im = Image.open(im_file)
im.show()
####################################################
Can someone help? Many thanks....
Shufen
I have a form where users can use it to upload images into a file and
save it into a directory.
I have installed PIL and Image module and do a fair bit of reading on
these module. But I don't know how can I use python to get the
uploaded image file from the form.
Can I use something like that:
######################################################
im_file = form["userfile"]
######################################################
im = Image.open(im_file)
im.show()
####################################################
Can someone help? Many thanks....
Shufen