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