Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

Commit a7765e9

Browse files
committed
Configurable storage path
1 parent eff78a7 commit a7765e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GroupDocs.Annotation for .NET/Controllers/FilesController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.IO;
22
using System.Collections;
33
using System.Web.Mvc;
4+
using GroupDocs.Annotation_for.NET.Models;
45

56
namespace GroupDocs.Annotation_for.NET.Controllers
67
{
@@ -12,7 +13,7 @@ public class FilesController : Controller
1213
public ActionResult Get(string file)
1314
{
1415
Response.AddHeader("Content-Type", "application/json");
15-
DirectoryInfo d = new DirectoryInfo(this.Server.MapPath("~/App_Data/Storage"));
16+
DirectoryInfo d = new DirectoryInfo(Utils.getStoragePath());
1617
ArrayList result = new ArrayList();
1718
foreach (FileInfo f in d.GetFiles())
1819
{

0 commit comments

Comments
 (0)