Esempio n. 1
0
def upload_qiniuyun(filename, filepath):
    ret, info = qiniuyun.upload(filename, filepath)

    if info.status_code == 200:
        return True
    else:
        return False
Esempio n. 2
0
def upload_qiniuyun(file_name, file_path):
    """
    本地文件上传到七牛云
    :param file_name:
    :param file_path:
    :return:
    """
    ret, info = qiniuyun.upload(file_name, file_path)

    return True if info.status_code == 200 else False
Esempio n. 3
0
def upload_qiniuyun(filename, file_path):
    '''
    本地文件上传至七牛云
    :param filename:
    :param file_path:
    :return:
    '''
    ret, info = qiniuyun.upload(file_name=filename, file_path=file_path)
    print(ret)

    return True if info.status_code == 200 else False