use IO.copy_stream if available for making uploads with HTTPFile