You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to pass file with formdata and server written in java should receive as below
public Response uploadFileWithMetadata(ObjectMetadata objectMetadata, MultipartBody multipartBody) {}
below is the client code and I am passing which is sending as objectMetadata as null and multipartBody array has 2 values, one with file and other with objectMetadata and that is not accepted by service as valid input. ObjectMetadata received on the server side should be application/json and I set that in the formdata. But that is received as text/plain and I am suspecting, that is causing issue
I need to pass file with formdata and server written in java should receive as below
public Response uploadFileWithMetadata(ObjectMetadata objectMetadata, MultipartBody multipartBody) {}
below is the client code and I am passing which is sending as objectMetadata as null and multipartBody array has 2 values, one with file and other with objectMetadata and that is not accepted by service as valid input. ObjectMetadata received on the server side should be application/json and I set that in the formdata. But that is received as text/plain and I am suspecting, that is causing issue
Please check and let know if I am missing something in the data section that need to be passed as separate parameter
The text was updated successfully, but these errors were encountered: