def __init__(self, files, progress_callback=None, chunk_size=8192):
        """
        Initializer

        :param files:
            A dictionary of files to upload, of the form {'file': ('filename', <file object>)}
        :type network_down_callback:
            Dict
        """
        super(MultipartUploadWrapper, self).__init__()
        self._cursor = 0
        self._body_parts = None
        self._chunk_size = chunk_size
        self._progress_callback = progress_callback
        self._content_length = 0
        self._chunk_transfered = 0
        self.content_type_header = None
        self.content_length_header = None


        self.__create_request_parts(files)
def __init__ ( self , files , progress_callback = None , chunk_size = 8192 ) : super ( MultipartUploadWrapper , self ) . __init__ ( ) self . _cursor = 0 self . _body_parts = None self . _chunk_size = chunk_size self . _progress_callback = progress_callback self . _content_length = 0 self . _chunk_transfered = 0 self . content_type_header = None self . content_length_header = None self . __create_request_parts ( files )
Initializer

        :param files:
            A dictionary of files to upload, of the form {'file': ('filename', <file object>)}
        :type network_down_callback:
            Dict