Add -tmp_filename parameter to content::item::new and content::revision::new to handle file uploads at a low level with the cr tcl api. You still need to figure out the mime type and cotent type (image,etc.) before calling content::item::new. A convenience wrapper should be written if you need that feature. (that would replace cr_import_content, it think.)