This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user