This commit is contained in:
2020-04-22 15:55:02 +00:00
parent 6c8882db7e
commit d7bf8d48cf
2 changed files with 8 additions and 5 deletions

View File

@@ -256,7 +256,7 @@ namespace AyaNova.Util
/// </summary>
/// <returns></returns>
internal static async Task<FileAttachment> StoreFileAttachmentAsync(string tempFilePath, string contentType, string fileName, DateTime lastModified,
AyaTypeId attachToObject, AyContext ct)
AyaTypeId attachToObject, string notes, AyContext ct)
{
//calculate hash
var hash = FileHash.GetChecksum(tempFilePath);
@@ -284,11 +284,12 @@ namespace AyaNova.Util
{
StoredFileName = hash,
DisplayFileName = fileName,
Notes = string.Empty,
Notes = notes,
ContentType = contentType,
AttachToObjectId = attachToObject.ObjectId,
AttachToObjectType = attachToObject.ObjectType,
LastModified=lastModified
LastModified = lastModified
};
//Store in DB