Browse Source

Added proper 404 response

tags/3.0.0
Teknikode 2 years ago
parent
commit
6a1222a667
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Teknik/Areas/Upload/Controllers/UploadController.cs

+ 4
- 0
Teknik/Areas/Upload/Controllers/UploadController.cs View File

@@ -151,6 +151,10 @@ namespace Teknik.Areas.Upload.Controllers
contentLength = uploads.ContentLength;
dateUploaded = uploads.DateUploaded;
}
else
{
return Redirect(Url.SubRouteUrl("error", "Error.Http404"));
}
}

// We don't have the key, so we need to decrypt it client side

Loading…
Cancel
Save