Browse Source

Fixed downloads

tags/2.0.3
Teknikode 4 years ago
parent
commit
5dcc2d9eeb

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

@@ -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;

+ 1
- 1
Teknik/Filters/TrackingFilterAttribute.cs View File

@@ -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…
Cancel
Save