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 have found that when I use Indy component to send a multipart/form-data request to the dmvcframework server, TMVCWebRequest.ContentParam function couldn't return the value of the content parameter.
I send a request using the TIdHTTP component, adding a form field as following: FFormData.AddFormField(AField, AValue, 'utf-8').ContentTransfer := '8bit';
Because I need to support UTF8 symbols in my endpoint.
I logged a request on the server side.
Content type: multipart/form-data;boundary=--------061924103740983
When I try to get the content param value, it returns empty string: var Param := Context.Request.ContentParam('organization_id')
So I think that content param parser not working properly here.
The text was updated successfully, but these errors were encountered:
Because I need to send also files using multipart/form-data. Just try to send multipart/form-data request from the Indy component to the dmvcframework api server. If you will use a following charset and content transfer params:
Hello.
I have found that when I use Indy component to send a multipart/form-data request to the dmvcframework server,
TMVCWebRequest.ContentParam
function couldn't return the value of the content parameter.I send a request using the TIdHTTP component, adding a form field as following:
FFormData.AddFormField(AField, AValue, 'utf-8').ContentTransfer := '8bit';
Because I need to support UTF8 symbols in my endpoint.
I logged a request on the server side.
Content type:
multipart/form-data;boundary=--------061924103740983
Request body:
When I try to get the content param value, it returns empty string:
var Param := Context.Request.ContentParam('organization_id')
So I think that content param parser not working properly here.
The text was updated successfully, but these errors were encountered: