refabrique : une librairie serveur

This commit is contained in:
2018-03-12 23:49:05 +01:00
parent 1179767112
commit 9019f39ede
25 changed files with 457 additions and 86 deletions

View File

@ -46,7 +46,7 @@ namespace Yavsc.Helpers
}
var di = new DirectoryInfo(root);
if (!di.Exists) di.Create();
return root;
return di.FullName;
}
public static void DeleteUserFile(this ApplicationUser user, string fileName)
@ -66,6 +66,7 @@ namespace Yavsc.Helpers
ContentDisposition contentDisposition = new ContentDisposition(f.ContentDisposition);
item.FileName = Yavsc.Abstract.FileSystem.FileSystemHelpers.FilterFileName (destFileName ?? contentDisposition.FileName);
item.MimeType = contentDisposition.DispositionType;
item.DestDir = root;
var fi = new FileInfo(Path.Combine(root, item.FileName));
if (fi.Exists)
{

View File

@ -39,6 +39,8 @@ namespace Yavsc.Helpers
using Models;
using Models.Calendar;
using Services;
using Server.Helpers;
/// <summary>
/// Google helpers.