|
@@ -88,10 +88,11 @@ namespace MTWorkHR.Application.Services
|
|
|
|
|
|
using (var stream = new MemoryStream(attach.Content))
|
|
|
{
|
|
|
- var file = new FormFile(stream, 0, stream.Length, Path.GetFileNameWithoutExtension(attach.FileName), attach.FileName)
|
|
|
+ var file = new FormFile(stream, 0, stream.Length, Path.GetFileNameWithoutExtension(attach.FileName), attach.FilePath)
|
|
|
{
|
|
|
Headers = new HeaderDictionary(),
|
|
|
ContentType = attach.ContentType,
|
|
|
+
|
|
|
};
|
|
|
|
|
|
System.Net.Mime.ContentDisposition cd = new System.Net.Mime.ContentDisposition
|