You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Considering the controller for uploading large files (see https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/models/file-uploads/samples/5.x/LargeFilesSample/Controllers/FileUploadController.cs), how to cancel the upload of a file sent in a multpart/form-data?
The cancellation token propagation doesn't work and the
HttpContext.RequestAborted
inside the controller's action never updates when the client cancels the POST request while the uploading of the file is in progress. This issue occurs in ASP.NET Core 7. I didn't check with older versions.Beta Was this translation helpful? Give feedback.
All reactions