×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    12

    mimetypes module?

    hello,
    can anybody tell me where i can find the minetypes.py module? seems that it's not included in the pyS60 package. i need it for an file upload class, togeher with posixpath.
    thanks, uno

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: mimetypes module?

    Quote Originally Posted by unoll View Post
    hello,
    can anybody tell me where i can find the minetypes.py module? seems that it's not included in the pyS60 package. i need it for an file upload class, togeher with posixpath.
    thanks, uno
    hi uno11
    i cant understand ur problem as far as i guess that u just want to upload a file or what.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    12

    Re: mimetypes module?

    Quote Originally Posted by gaba88 View Post
    hi uno11
    i cant understand ur problem as far as i guess that u just want to upload a file or what.
    file can be wav, amr, jpg, png... so to send the right mimetype, the module mimetype.py would be helpful for guessing the right type, no? wasn't that the very reason for this module?
    anyway, i can try the standard python mod...
    --u.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: mimetypes module?

    hi uno11
    you better try out the standard python module to upload anykind of file types.
    thanks

  5. #5
    Regular Contributor
    Join Date
    Dec 2007
    Location
    India
    Posts
    133

    Re: mimetypes module?

    Quote Originally Posted by unoll View Post
    file can be wav, amr, jpg, png... so to send the right mimetype, the module mimetype.py would be helpful for guessing the right type, no? wasn't that the very reason for this module?
    anyway, i can try the standard python mod...
    --u.
    Hi unoll,

    You are 100% correct the minetypes is used to guess the filetype/ extension of the given file type.

    And here is where you get the code for the minetype functions. You can have it in a file and make your py script.
    Kandyfloss

    V 7.0642.0
    18-10-06
    RH-51
    Nokia 7610

  6. #6
    Registered User
    Join Date
    Mar 2008
    Posts
    12

    Re: mimetypes module?

    Quote Originally Posted by kandyfloss View Post
    Hi unoll,
    And here is
    works, thanks, u.

Similar Threads

  1. ImportError: No module named _appuifw
    By ernesto.ferrari in forum Mobile Web Server
    Replies: 9
    Last Post: 2008-04-18, 05:36
  2. (question)about dir_iter module
    By psychologe in forum Symbian
    Replies: 1
    Last Post: 2008-01-25, 10:47
  3. Carbide.j 1.5 and Netbeans 5.5 beta 2
    By ovjo12 in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2007-06-11, 05:43
  4. Replies: 2
    Last Post: 2006-10-25, 18:04
  5. SMS I/O Control Application via Evaluation Module
    By alokghosh in forum Nokia M2M
    Replies: 2
    Last Post: 2003-06-18, 17:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •