Browse Source

Added better default directories

pull/29/head
Teknikode 7 years ago
parent
commit
341cc4db5e
  1. 3
      Teknik/Configuration/PodcastConfig.cs
  2. 3
      Teknik/Configuration/UploadConfig.cs
  3. 2
      Teknik/Views/Web.config

3
Teknik/Configuration/PodcastConfig.cs

@ -1,5 +1,6 @@ @@ -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 @@ -24,7 +25,7 @@ namespace Teknik.Configuration
Description = string.Empty;
PodcastsToLoad = 10;
CommentsToLoad = 10;
PodcastDirectory = string.Empty;
PodcastDirectory = Directory.GetCurrentDirectory();
}
}
}

3
Teknik/Configuration/UploadConfig.cs

@ -1,5 +1,6 @@ @@ -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 @@ -29,7 +30,7 @@ namespace Teknik.Configuration
public void SetDefaults()
{
MaxUploadSize = 100000000;
UploadDirectory = string.Empty;
UploadDirectory = Directory.GetCurrentDirectory();
FileExtension = "enc";
UrlLength = 5;
DeleteKeyLength = 24;

2
Teknik/Views/Web.config

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
<add namespace="System.Web.Optimization" />
<add namespace="System.Web.Routing" />
<add namespace="Teknik" />
<add namespace="DanTup.Web" /></namespaces>
</namespaces>
</pages>
</system.web.webPages.razor>

Loading…
Cancel
Save