mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed downloads
This commit is contained in:
parent
a5daa7be0b
commit
5dcc2d9eeb
@ -199,7 +199,7 @@ namespace Teknik.Areas.Upload.Controllers
|
||||
Response.AddHeader("Accept-Ranges", "0-" + upload.ContentLength);
|
||||
|
||||
// check to see if we need to pass a specified range
|
||||
if (!byRange)
|
||||
if (byRange)
|
||||
{
|
||||
long anotherStart = startByte;
|
||||
long anotherEnd = endByte;
|
||||
|
@ -21,7 +21,7 @@ namespace Teknik.Filters
|
||||
public override void OnActionExecuted(ActionExecutedContext filterContext)
|
||||
{
|
||||
string title = string.Empty;
|
||||
if (filterContext.Controller.ViewBag != null)
|
||||
if (filterContext.Controller != null && filterContext.Controller.ViewBag != null && filterContext.Controller.ViewBag.Title != null)
|
||||
{
|
||||
title = filterContext.Controller.ViewBag.Title;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user