I've installed the Python Imaging Library (PIL) so that I could upload
and display images (for the first time).  Everything works fine when I
upload PNG or GIF or TIFF files (from my Mac), but whenever I try to
upload any JPEG file, form validation gives the following error:

Upload a valid image. The file you uploaded was either not an image or
a corrupted image.

Is this a problem with PIL, or do I need to do something more complex
in my view than:

form = MessageForm(request.POST, request.FILES)
if form.is_valid():
    form.save()

And by the way, what is the recommended way to resize images to a
desired maximum size after uploading?  E.g., using an appropriate PIL
function?

Thanks,

Rodney




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to