R
Ryan Paul
is there any way to determine the mimetype of a file using ruby?
TIA
--SegPhault
TIA
--SegPhault
is there any way to determine the mimetype of a file using ruby?
TIA
--SegPhault
[snip]is there any way to determine the mimetype of a file using ruby?
=P just realized I sent this to the wrong list. as long as I'm here... how
is it done in python?
Christos said:[snip]is there any way to determine the mimetype of a file using ruby?
=P just realized I sent this to the wrong list. as long as I'm here... how
is it done in python?
The mimetypes.py module in the standard library is your friend.
Christos said:is there any way to determine the mimetype of a file using ruby? [snip]
=P just realized I sent this to the wrong list. as long as I'm here... how
is it done in python?
The mimetypes.py module in the standard library is your friend.
A more effective approach would be to use the "magic" module that come
with the "file" utility (it is present in the sources, but not built by
default).
This way you can perform a fine-grained recognition of files..
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.