(self: _StreamFileMixinProto, filename: str,
	                    file_location: ty.Optional[str] = None,
	                    content_type: ty.Optional[str] = None)
Yields the opening text of a file section in multipart HTTP.
		
		Parameters
		----------
		filename
			Filename of the file being opened and added to the HTTP body
		file_location
			Full path to the file being added, including the filename
		content_type
			The Content-Type of the file; if not set a value will be guessed
Yields the opening text of a file section in multipart HTTP.
		
		Parameters
		----------
		filename
			Filename of the file being opened and added to the HTTP body
		file_location
			Full path to the file being added, including the filename
		content_type
			The Content-Type of the file; if not set a value will be guessed
Yields the opening text of a file section in multipart HTTP . Parameters ---------- filename Filename of the file being opened and added to the HTTP body file_location Full path to the file being added including the filename content_type The Content - Type of the file ; if not set a value will be guessed
def _gen_file_start(self: _StreamFileMixinProto, filename: str,
	                    file_location: ty.Optional[str] = None,
	                    content_type: ty.Optional[str] = None) -> gen_bytes_t:
		"""Yields the opening text of a file section in multipart HTTP.
		
		Parameters
		----------
		filename
			Filename of the file being opened and added to the HTTP body
		file_location
			Full path to the file being added, including the filename
		content_type
			The Content-Type of the file; if not set a value will be guessed
		"""
		yield from self._gen_item_start()
		
		headers = content_disposition_headers(filename.replace(os.sep, "/"))
		headers.update(content_type_headers(filename, content_type))
		if file_location and os.path.isabs(file_location):
			headers.update({"Abspath": file_location})
		yield from self._gen_headers(headers)
def _gen_file_start ( self : _StreamFileMixinProto , filename : str , file_location : ty . Optional [ str ] = None , content_type : ty . Optional [ str ] = None ) -> gen_bytes_t : yield from self . _gen_item_start ( ) headers = content_disposition_headers ( filename . replace ( os . sep , "/" ) ) headers . update ( content_type_headers ( filename , content_type ) ) if file_location and os . path . isabs ( file_location ) : headers . update ( { "Abspath" : file_location } ) yield from self . _gen_headers ( headers )