Failed upload file using FormDataBodyParameter API


#1

i got error 400 everytime send request for upload file, already set header content-type = multipart/form-data,

def formdataparam = new FormDataBodyParameter(‘file’,’/Users/sh/Desktop/abc.PNG’,‘File’)

uploadImage.setBodyContent(new HttpFormDataBodyContent([formdataparam]))