detecting the content-type from file contents is always black magic and not always successful.
a related idea might be to guess the type from the file extension (if -i is used and not stdin).
but the next problem then is that every pastebin wants to be told about the format/content-type in a slightly different way.
detecting the content-type from file contents is always black magic and not always successful.
a related idea might be to guess the type from the file extension (if -i is used and not stdin).
but the next problem then is that every pastebin wants to be told about the format/content-type in a slightly different way.