Hi. I'm using newforms to upload a file in my project. I want to check the mime type of the uploaded file.
Let's say my field name is "file", and check_uploaded_file() is a function that takes the content type and checks it. file = request.FILES['file'] check_uploaded_file(file.content_type) So when I upload let's say a JPG file with firefox, print file.content_type outputs "image/jpeg" that's ok. If I try the exact same thing with Safari, print file.content_type outputs "" NOTHING NADA RIEN ! I don't get it.. I'm using svn release 8649 of django. Does anyone knows what's happening to me ? Thx for any help you could provide me. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---