upload(): use CURLFile if available (PHP >= 5.5.0)