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)