This commit is contained in:
@@ -253,14 +253,10 @@ namespace AyaNova.Util
|
||||
|
||||
/// <summary>
|
||||
/// Store a file attachment
|
||||
/// </summary>
|
||||
/// <param name="tempFilePath"></param>
|
||||
/// <param name="contentType"></param>
|
||||
/// <param name="fileName"></param>
|
||||
/// <param name="attachToObject"></param>
|
||||
/// <param name="ct"></param>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
internal static async Task<FileAttachment> StoreFileAttachmentAsync(string tempFilePath, string contentType, string fileName, AyaTypeId attachToObject, AyContext ct)
|
||||
internal static async Task<FileAttachment> StoreFileAttachmentAsync(string tempFilePath, string contentType, string fileName, DateTime lastModified,
|
||||
AyaTypeId attachToObject, AyContext ct)
|
||||
{
|
||||
//calculate hash
|
||||
var hash = FileHash.GetChecksum(tempFilePath);
|
||||
@@ -291,7 +287,8 @@ namespace AyaNova.Util
|
||||
Notes = string.Empty,
|
||||
ContentType = contentType,
|
||||
AttachToObjectId = attachToObject.ObjectId,
|
||||
AttachToObjectType = attachToObject.ObjectType
|
||||
AttachToObjectType = attachToObject.ObjectType,
|
||||
LastModified=lastModified
|
||||
};
|
||||
|
||||
//Store in DB
|
||||
|
||||
Reference in New Issue
Block a user