Browse Source

Added proper 404 response

pull/111/head
Teknikode 6 years ago
parent
commit
6a1222a667
  1. 4
      Teknik/Areas/Upload/Controllers/UploadController.cs

4
Teknik/Areas/Upload/Controllers/UploadController.cs

@ -151,6 +151,10 @@ namespace Teknik.Areas.Upload.Controllers @@ -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