You Are Here:

Community: Developer Discussion Boards

#1 Old mimetypes module? - 2008-04-04, 17:23

Join Date: Mar 2008
Posts: 12
unoll
Offline
Registered User
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
Reply With Quote

#2 Old Re: mimetypes module? - 2008-04-04, 17:45

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
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.


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: mimetypes module? - 2008-04-04, 18:17

Join Date: Mar 2008
Posts: 12
unoll
Offline
Registered User
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.
Reply With Quote

#4 Old Re: mimetypes module? - 2008-04-04, 19:14

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
hi uno11
you better try out the standard python module to upload anykind of file types.
thanks


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#5 Old Re: mimetypes module? - 2008-04-04, 19:36

Join Date: Dec 2007
Posts: 134
Location: India
kandyfloss's Avatar
kandyfloss
Offline
Regular Contributor
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
Reply With Quote

#6 Old Re: mimetypes module? - 2008-04-04, 20:46

Join Date: Mar 2008
Posts: 12
unoll
Offline
Registered User
Quote:
Originally Posted by kandyfloss View Post
Hi unoll,
And here is
works, thanks, u.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
ImportError: No module named _appuifw ernesto.ferrari Mobile Web Server 9 2008-04-18 06:36
(question)about dir_iter module psychologe Python 1 2008-01-25 11:47
Carbide.j 1.5 and Netbeans 5.5 beta 2 ovjo12 Mobile Java Tools & SDKs 5 2007-06-11 06:43
Incorrect keycapUture.pyd module in 2nd edition !!! cyke64 Python 2 2006-10-25 19:04
SMS I/O Control Application via Evaluation Module alokghosh Nokia M2M 2 2003-06-18 18:05

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia