add support for direct file upload (without attaching first)