Detecting MIME type of a shared file
Tomeu Vizoso
tomeu at tomeuvizoso.net
Wed Mar 19 16:48:30 EDT 2008
On Wed, Mar 19, 2008 at 9:43 PM, Michael Stone <michael at laptop.org> wrote:
> On Tue, Mar 18, 2008 at 09:18:05AM -0500, James Simmons wrote:
> > how can I tell what kind of file I am receiving when
> > someone shares a file with me?
>
> You might examine python's mimetypes module or the 'file' command.
I think you can also add that mime type to the tube's metadata and
read it from the receiving side?
Tomeu
More information about the Devel
mailing list