❔ RequestSizeLimit on Actions not Working!
I have an action that is uploading a large file. The file size is 189mb. For some reason I'm getting this error 413 Error: Request Entity Too Large.
I even tried adding the RequestSizeLimit attribute on top of the action but it still has no effect. Here is the action
4 Replies
Stack Overflow
Increase upload file size in Asp.Net core
Currently, I am working with Asp.Net Core and MVC6 need to upload file size unlimited. I have searched its solution but still not getting the actual answer.
I have tried this link
If anyone have ...
@Nathaniel TA Thanks mate, after a lot of testing. I realized it was using IIS in Debug and Kestrel in Production. I changed it to use Kestrel on both debug and production. For some reason, the attribute then started working. It sounds weird.
@SwaggerLife I think IIS has an internal limit that was rejecting it before it even reached your service. np
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.