This commit is contained in:
2022-03-10 23:32:33 +00:00
parent 3591907b41
commit 0784313e6d
5 changed files with 62 additions and 17 deletions

View File

@@ -436,8 +436,15 @@ namespace AyaNova.Util
/// Store a file attachment
/// </summary>
/// <returns></returns>
internal static async Task<FileAttachment> StoreFileAttachmentAsync(string tempFilePath, string contentType, string fileName, DateTime lastModified,
AyaTypeId attachToObject, string notes, AyContext ct)
internal static async Task<FileAttachment> StoreFileAttachmentAsync(
string tempFilePath,
string contentType,
string fileName,
DateTime lastModified,
AyaTypeId attachToObject,
string notes,
long attachedByUserId,
AyContext ct)
{
//calculate hash
var hash = FileHash.GetChecksum(tempFilePath);
@@ -473,7 +480,8 @@ namespace AyaNova.Util
AttachToObjectId = attachToObject.ObjectId,
AttachToAType = attachToObject.AType,
LastModified = lastModified,
Size = FileSize
Size = FileSize,
AttachedByUserId=attachedByUserId
};