Any idea why I keep getting this when I try to post photos.
<invokeactionmethodasync><invokenextactionfilterasync><invokeinnerfilterasync><invokenextresourcefilter><invokefilterpipelineasync><invokeasync><invoke>
</invoke></invokeasync></invokefilterpipelineasync></invokenextresourcefilter></invokeinnerfilterasync></invokenextactionfilterasync></invokeactionmethodasync>
System.NullReferenceException: Object reference not set to an instance of an object.
at RetroRidesSystem.Controllers.ImageController.Upload(String id, List`1 files) in D:\Programming\aspnet-core-3-01-login\quickstart\01-login\Controllers\ImageController.cs:line 184
at lambda_method(Closure , Object )
at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<invokeactionmethodasync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<invokenextactionfilterasync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<invokeinnerfilterasync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<invokenextresourcefilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<invokefilterpipelineasync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<invokeasync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
HEADERS
=======
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Authorization: Client-ID 73bfb015e2b26d3
Content-Length: 1344160
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarypByX1Lfj7yXRmBlW
Host: img.retro-rides.org
Max-Forwards: 10
Referer:
forum.retro-rides.org/User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Origin:
forum.retro-rides.orgsec-ch-ua: ".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Linux"
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
X-ARR-LOG-ID: a71b0e4e-e4f1-4f79-979c-d7fe24da4f2b
CLIENT-IP: 5.64.248.219:49462
DISGUISED-HOST: img.retro-rides.org
X-SITE-DEPLOYMENT-ID: retroridesimages
WAS-DEFAULT-HOSTNAME: retroridesimages.azurewebsites.net
X-Forwarded-Proto: https
X-AppService-Proto: https
X-ARR-SSL: 2048|256|CN=Go Daddy Secure Certificate Authority - G2, OU=http://certs.godaddy.com/repository/, O="GoDaddy.com, Inc.", L=Scottsdale, S=Arizona, C=US|CN=img.retro-rides.org
X-Forwarded-TlsVersion: 1.2
X-Forwarded-For: 5.64.248.219:49462
X-Original-URL: /Image/Upload/rustinmotion
X-WAWS-Unencoded-URL: /Image/Upload/rustinmotion
[/img]
</invoke></invokeasync></invokefilterpipelineasync></invokenextresourcefilter></invokeinnerfilterasync></invokenextactionfilterasync></invokeactionmethodasync>