file uploads are CKAN 2.2+ only
detect file-like objects in ActionShortcut

type detection is bad, but this is in the class that adds a
'friendly' interface for calling actions. Use call_action if
you don't want any magic.