#NEWLINE# def uploadData( url , fields , files , user = None , password = None , method = 'POST' ) : #NEWLINE# #INDENT# 'Easy wrapper for uploading content via HTTP multi part' #NEWLINE# ( content_type , body ) = encode_multipart_formdata ( fields , files ) #NEWLINE# return requestUrl ( url , body = fields , content_type = content_type , method = method , user = user , password = password )