From 341cc4db5ea3f8c23a614cef581bf540d6ef01fb Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Mon, 25 Jan 2016 20:54:53 -0800 Subject: [PATCH] Added better default directories --- Teknik/Configuration/PodcastConfig.cs | 3 ++- Teknik/Configuration/UploadConfig.cs | 3 ++- Teknik/Views/Web.config | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Teknik/Configuration/PodcastConfig.cs b/Teknik/Configuration/PodcastConfig.cs index 052e69d..288dcb8 100644 --- a/Teknik/Configuration/PodcastConfig.cs +++ b/Teknik/Configuration/PodcastConfig.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Web; @@ -24,7 +25,7 @@ namespace Teknik.Configuration Description = string.Empty; PodcastsToLoad = 10; CommentsToLoad = 10; - PodcastDirectory = string.Empty; + PodcastDirectory = Directory.GetCurrentDirectory(); } } } \ No newline at end of file diff --git a/Teknik/Configuration/UploadConfig.cs b/Teknik/Configuration/UploadConfig.cs index fc16883..2428c14 100644 --- a/Teknik/Configuration/UploadConfig.cs +++ b/Teknik/Configuration/UploadConfig.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Web; @@ -29,7 +30,7 @@ namespace Teknik.Configuration public void SetDefaults() { MaxUploadSize = 100000000; - UploadDirectory = string.Empty; + UploadDirectory = Directory.GetCurrentDirectory(); FileExtension = "enc"; UrlLength = 5; DeleteKeyLength = 24; diff --git a/Teknik/Views/Web.config b/Teknik/Views/Web.config index eefe5fd..f6ea0ce 100644 --- a/Teknik/Views/Web.config +++ b/Teknik/Views/Web.config @@ -18,7 +18,7 @@ - +