def uploadData(url, fields, files, user=None, password=None, method="POST"):
    
    content_type, body = encode_multipart_formdata(fields, files)
    return requestUrl(url, body=body, content_type=content_type, method=method, user=user, password=password)
Easy wrapper for uploading content via HTTP multi part
dataset/ETHPy150Open zynga/jasy/jasy/http/Request.py/uploadData