Skip to content Skip to sidebar Skip to footer

Not Able To Post More Than 4mb Files To Web Api

While am posting more than 4MB to my Web API it is throwing error as 404(Not Found) or else if am using ([EnableCors(origins: 'http://localhost:61365', headers: '', methods: '')])

Solution 1:

Asp.net has a limit on max request length. Have you checked that? Increase the param value

<system.web>
  <httpRuntime maxRequestLength="30096" />
</system.web>

Post a Comment for "Not Able To Post More Than 4mb Files To Web Api"