def rapidupload(self, file_handler, path, **kwargs):
file_handler.seek(<NUM_LIT:0>, <NUM_LIT:2>)<EOL>_BLOCK_SIZE = <NUM_LIT:2> ** <NUM_LIT:20><EOL>content_length = file_handler.tell()<EOL>file_handler.seek(<NUM_LIT:0>)<EOL>first_256bytes = file_handler.read(<NUM_LIT> * <NUM_LIT>)<EOL>slice_md5 = md5(first_256bytes).hexdigest()<EOL>content_crc32 = crc32(first_256bytes).conjugate()<EOL>content_md5 = md5(first_256bytes)<EOL>while True:<EOL><INDENT>block = file_handler.read(_BLOCK_SIZE)<EOL>if not block:<EOL><INDENT>break<EOL><DEDENT>content_crc32 = crc32(block, content_crc32).conjugate()<EOL>content_md5.update(block)<EOL><DEDENT>data = {'<STR_LIT:path>': path,<EOL>'<STR_LIT>': content_length,<EOL>'<STR_LIT>': content_md5.hexdigest(),<EOL>'<STR_LIT>': slice_md5,<EOL>'<STR_LIT>': '<STR_LIT>' % (content_crc32.conjugate() & <NUM_LIT>)}<EOL>logging.debug('<STR_LIT>' + str(data))<EOL>return self._request('<STR_LIT>', '<STR_LIT>', data=data, **kwargs)<EOL>
秒传一个文件

        :param file_handler: 文件handler, e.g. open('file','rb')
        :type file_handler: file

        :param path: 上传到服务器的路径，包含文件名
        :type path: str

        :return: requests.Response

            .. note::
                * 文件已在服务器上存在，不上传，返回示例
                {

                    "path" : "/apps/album/1.jpg",

                    "size" : 372121,

                    "ctime" : 1234567890,

                    "mtime" : 1234567890,

                    "md5" : "cb123afcc12453543ef",

                    "fs_id" : 12345,

                    "isdir" : 0,

                    "request_id" : 12314124

                }

                * 文件不存在，需要上传

                {"errno":404,"info":[],"request_id":XXX}

                * 文件大小不足 256kb （slice-md5 == content-md5) 时

                {"errno":2,"info":[],"request_id":XXX}

                * 远程文件已存在

                {"errno":-8,"info":[],"request_id":XXX}