This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bad Request 400 when Uploading file to an object

I am getting below message when adding file to an existing object. I m using c#:

{"Status":400,"URL":"/objects/0/18222/latest/files/upload","Method":"POST","Exception":{"Name":"ArgumentException","Message":"Malformed data."},"Stack":"Error reference ID: ccff6cb1-a969-4574-beac-fe7bbeb2e7a6","Message":"Malformed data.","IsLoggedToVault":true,"IsLoggedToApplication":true,"ExceptionName":"ArgumentException"}

Below is my request:

{"UploadID":4,"Title":"test1234","Extension":"txt","Size":40,"FileInformationType":0,"TempFilePath":""}

Thanks