From 3e9afafd098172812672430ffe51148a86550033 Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Wed, 27 Jan 2016 20:29:53 -0800 Subject: [PATCH] Re-fixed url not being generated correctly for API upload --- Teknik/Areas/API/Controllers/APIv1Controller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Teknik/Areas/API/Controllers/APIv1Controller.cs b/Teknik/Areas/API/Controllers/APIv1Controller.cs index 255a362..6804789 100644 --- a/Teknik/Areas/API/Controllers/APIv1Controller.cs +++ b/Teknik/Areas/API/Controllers/APIv1Controller.cs @@ -93,7 +93,7 @@ namespace Teknik.Areas.API.Controllers string fullUrl = Url.SubRouteUrl("upload", "Upload.Download", new { file = upload.Url }); var returnData = new { - url = (saveKey && !string.IsNullOrEmpty(key)) ? fullUrl : fullUrl + "#" + key, + url = (saveKey || string.IsNullOrEmpty(key)) ? fullUrl : fullUrl + "#" + key, fileName = upload.Url, contentType = contentType, contentLength = contentLength,