title: Read Content-Disposition: form-data; name="json" using .net core + AWS
body: <p>I have integrated my .net-core MVC application with a third-party system for a callback hit.
  When i host the above application in Azure my API works as expected but when I host it AWS elastic beanstalk it does not work.
  In Azure input for API comes as an object but in AWS it case as below
  Below is the request I am receiving from third-party to my call back API.</p>
  <pre><code>------------------------------e2bdba1d3cf0
  Content-Disposition: form-data; name=&quot;json&quot;
  
  {&quot;Transaction&quot;:{&quot;Guid&quot;:&quot;[Fax GUID]&quot;,&quot;To&quot;:&quot;14154847140&quot;,&quot;From&quot;:&quot;14154847140&quot;,&quot;IsInbound&quot;:false,&quot;IsDraft&quot;:false,&quot;TypeCode&quot;:&quot;F&quot;,&quot;StatusCode&quot;:&quot;S&quot;,&quot;ErrorCode&quot;:null,&quot;CreatedAt&quot;:&quot;1505933982&quot;,&quot;UpdatedAt&quot;:&quot;1505934022&quot;,&quot;Uri&quot;:&quot;\/v1\/Accounts\/[Your Account GUID]\/Transmissions\/[Fax GUID]&quot;,&quot;NumPagesBilled&quot;:1}}
  ------------------------------e2bdba1d3cf0--
  </code></pre>
  <p>My API Code</p>
  <pre><code>  [HttpPost]
          [Route(&quot;CallBack&quot;)]
          public string CallBack()
          {
              try
              {
                  eSignService eSignService = new eSignService();
                  dynamic json = new StreamReader(HttpContext.Request.Body).ReadToEndAsync().GetAwaiter().GetResult();
                  if (json != null)
                  {
                      //logic to save the file
                  }
                  else
                  {
                      _logger.LogInformation(&quot;No Data Found&quot;);
                  }
              }
              catch (Exception ex)
              {
                  _logger.LogInformation(&quot;Error : &quot; + ex);
              }
              string result = &quot;Hello API Event Received&quot;;
              return result;
          }
  </code></pre>