allow store_temp_file to take a file-like object for chunked copy