Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
file posting mime type not matching
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
QC  
View profile  
 More options Mar 27, 7:42 am
From: QC <oakoft...@gmail.com>
Date: Fri, 27 Mar 2009 04:42:16 -0700 (PDT)
Local: Fri, Mar 27 2009 7:42 am
Subject: file posting mime type not matching
Posting a zip file from a web form gives a different mime type using
the cherrypy file type versus mimetype.types_map. Although, both are
valid types, they really should be the same to ease comparison.
Example:

    def postfile(self,*args,**params):
        import mimetypes
        myfile=params['myfile']
        print mimetypes.types_map['.zip']
        print myfile.type

result:

application/zip
application/x-zip-compressed

CP 3.1.1, Python 2.5

And, yes, one can add the CP type to mimetypes, but one should not
have to do this: CP should match the standard implementation in
mimetypes out of the box, always.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google