diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs index 1a4604e..165546c 100644 --- a/24Hour/Controllers/Common/LawyerArchivesController.cs +++ b/24Hour/Controllers/Common/LawyerArchivesController.cs @@ -1059,10 +1059,12 @@ namespace _24Hour.Controllers.Common if (System.IO.File.Exists(filepath)) { var basestr = Elight.Utility.Encrypt.DataEncryption.Decryptiones(filepath); + var filename = Path.GetFileName(filepath); + filename = Path.ChangeExtension(filename, ".jpg"); await twentyClient.UploadImage(new UploadDto() { Bmsah = registerinfo.bmsah, - FileName = Path.GetFileName(filepath), + FileName = filename, Code = typecode, Bhdlbm = registerinfo.bhdlbh, UnitCode = registerinfo.dwbm,