SWC-879: add general support for direct file handle upload