[Image-SIG] Uploading and image file from a form (Newbie)

Ms Soo Chong s4046441 at student.uq.edu.au
Thu Oct 14 14:23:27 CEST 2004


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




More information about the Image-SIG mailing list