Example #1
0
def httpUploadImage(srcImgPath, methodArgs):
    curlImgWrap.upload(methodArgs.get('url'), srcImgPath,
                       methodArgs.get("headers", {}))
Example #2
0
def upload_image(image_path, url, headers=None):
    with utils.stopwatch("Uploading {} to {}".format(image_path, url),
                         level=logging.INFO,
                         log=log):
        curlImgWrap.upload(url, image_path, headers)
Example #3
0
def httpUploadImage(srcImgPath, methodArgs):
    curlImgWrap.upload(methodArgs.get('url'), srcImgPath,
                       methodArgs.get("headers", {}))