From 0d564fe8ae4199d28106148de6368c4eb7eff91e Mon Sep 17 00:00:00 2001 From: michael-bailey Date: Mon, 17 Mar 2025 14:43:50 +0000 Subject: [PATCH] Fixed redirect, for post upload complete. --- FileStorageService.www/Controllers/FilesController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileStorageService.www/Controllers/FilesController.cs b/FileStorageService.www/Controllers/FilesController.cs index 3111474..d2b3532 100644 --- a/FileStorageService.www/Controllers/FilesController.cs +++ b/FileStorageService.www/Controllers/FilesController.cs @@ -80,7 +80,7 @@ public class FilesController(ApplicationDbContext context) : Controller await context.SaveChangesAsync(); - return Redirect($"/Files/{handle.Id}"); + return RedirectToAction("Index", "Files", new{ id = handle.Id}); } private async Task CreateFileBlocks(FileHandle fileHandle, Stream reader)