so the first thing i do with my application is have the user select an excel file. I then take that file and send it to the server to parse the file and then i return an object with all the rows. This works fine. (the file really only contains numbers and strings nothing complex)
Next the user will select a few more things to modify the object (these only change lookup ids on the object)
finally the users goes to submit this object to be saved. Normally this works fine, but as I was testing I found that all of a sudden it kept erroing out. So I investigated and found that it was sending null to the api but the object in angular was still alive and well. I continued to investigate and found that it had to do with the memory size of the object. (atleast I believe that to be the case). I found that as my object is greater than 33.740 MiB the api only recieves a null object instead of the correct object it had no problem receiving earlier.
A large part of the object size is almost exclusively related to the file size the user selects to upload.
Does anyone know if there is a limit that an api will have when sending to an api. Is there a setting im missing on my post? Additionaly does anyone know how to possible debug this issue because I am kinda at a lost as what exactly to do next. Besides putting a file size limitation for the user to see. I dont expect object or file sizes to get near 4GiB but 100sMiB is possible.
I know google has a limit of 4GiB but im not hitting that. examples of code below. let me know if you need more information.
Post Method
[Authorize]
[HttpPost]
[Route("TempRoute")]
public IHttpActionResult PostTempRoute(Object1 InObject)
{//InObject is null so it errors on the if statement inside the try catch
try
{
if(InObject.Prop1== null || InObject.Prop1.Count==0)
{
return GetResult(InObject);
}
else
{
ObjectService.GetObjects(InObject,this.User.Identity.Name);
return GetResult(InObject);
}
}
catch(Exception e)
{
ErrorLogService.SaveErrorLog(e, this.User.Identity.Name);
return InternalServerError();
}
}