Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HIMSScannerService
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HIMSScanner
HIMSScannerService
Commits
e8b037e4
Commit
e8b037e4
authored
Dec 09, 2024
by
Krishna Reddy Tamatam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected destination file path for upload functions.
parent
181ad9d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
FTPManagementAPIController.cs
Controllers/FTPManagementAPIController.cs
+10
-7
AppSettings.cs
Models/AppSettings.cs
+3
-2
Program.cs
Program.cs
+2
-2
No files found.
Controllers/FTPManagementAPIController.cs
View file @
e8b037e4
...
...
@@ -337,7 +337,7 @@ namespace FTP_Services.Services.Controllers
[
HttpPost
(
"DownloadBase64DataAsync_New"
)]
public
IActionResult
DownloadBase64DataAsync_New
(
string
fileNameWithPath
)
{
string
strDestinationPath
=
_appSettings
.
FTPConfiguration
.
DestinationPath
.
ToString
().
Trim
();
string
strDestinationPath
=
_appSettings
.
FTPConfiguration
.
DestinationPath
File
.
ToString
().
Trim
();
string
strMfN
=
fileNameWithPath
.
Replace
(
"/"
,
"\\"
).
TrimStart
(
'\\'
);
string
strFullPath
=
Path
.
Combine
(
strDestinationPath
,
strMfN
);
...
...
@@ -446,6 +446,9 @@ namespace FTP_Services.Services.Controllers
||
response
.
StatusCode
==
FtpStatusCode
.
FileActionOK
;
return
success
;
}
//Using for Scan upload
[
HttpPost
(
"UploadProfileImageAsync"
)]
public
async
Task
<
string
>
UploadProfileImageAsync
(
...
...
@@ -501,7 +504,7 @@ namespace FTP_Services.Services.Controllers
}
string
strDestinationPath
=
_appSettings
.
FTPConfiguration
.
DestinationPath
.
ToString
()
.
FTPConfiguration
.
DestinationPath
File
.
ToString
()
.
Trim
();
string
strMfN
=
fileName
.
Replace
(
"/"
,
"\\"
).
TrimStart
(
'\\'
);
...
...
@@ -568,7 +571,7 @@ namespace FTP_Services.Services.Controllers
}
string
strDestinationPath
=
_appSettings
.
FTPConfiguration
.
DestinationPath
.
ToString
()
.
FTPConfiguration
.
DestinationPath
File
.
ToString
()
.
Trim
();
string
strMfN
=
Path
.
GetFileName
(
filePath
);
string
strFullPath
=
Path
.
Combine
(
strDestinationPath
,
strMfN
);
...
...
@@ -635,7 +638,7 @@ namespace FTP_Services.Services.Controllers
}
string
strDestinationPath
=
_appSettings
.
FTPConfiguration
.
DestinationPath
.
ToString
()
.
FTPConfiguration
.
DestinationPath
File
.
ToString
()
.
Trim
();
string
strMfN
=
fileName
.
Replace
(
"/"
,
"\\"
).
TrimStart
(
'\\'
);
...
...
@@ -697,7 +700,7 @@ namespace FTP_Services.Services.Controllers
}
string
strDestinationPath
=
_appSettings
.
FTPConfiguration
.
DestinationPath
.
ToString
()
.
FTPConfiguration
.
DestinationPath
File
.
ToString
()
.
Trim
();
string
strMfN
=
fileName
.
Replace
(
"/"
,
"\\"
).
TrimStart
(
'\\'
);
...
...
@@ -769,7 +772,7 @@ namespace FTP_Services.Services.Controllers
// Network share path
string
strDestinationPath
=
_appSettings
.
FTPConfiguration
.
DestinationPath
.
ToString
()
.
FTPConfiguration
.
DestinationPath
File
.
ToString
()
.
Trim
();
// Replace forward slashes with backslashes for network path
...
...
@@ -1406,7 +1409,7 @@ namespace FTP_Services.Services.Controllers
try
{
string
strBasePath
=
_appSettings
.
FTPConfiguration
.
DestinationPath
.
ToString
()
.
FTPConfiguration
.
DestinationPath
File
.
ToString
()
.
Trim
();
sourceFilePath
=
sourceFilePath
.
Replace
(
"/"
,
"\\"
).
TrimStart
(
'\\'
);
...
...
Models/AppSettings.cs
View file @
e8b037e4
...
...
@@ -22,7 +22,6 @@ namespace FTP_Services.Core.Models
public
string
Password
{
get
;
set
;
}
public
string
FtpURL
{
get
;
set
;
}
public
bool
FTPMODE
{
get
;
set
;
}
public
string
DestinationPath
{
get
;
set
;
}
public
string
DestinationPathFtp
{
get
;
set
;
}
public
string
DestinationPathFile
{
get
;
set
;
}
...
...
@@ -32,7 +31,9 @@ namespace FTP_Services.Core.Models
Password
=
""
;
FtpURL
=
""
;
FTPMODE
=
false
;
DestinationPath
=
""
;
DestinationPathFtp
=
""
;
DestinationPathFile
=
""
;
}
}
}
Program.cs
View file @
e8b037e4
...
...
@@ -139,8 +139,8 @@ if (app.Environment.IsDevelopment())
else
{
//app.Run(); //For Test Site
//
app.Run("http://*:4708"); // For Production
app
.
Run
(
"http://*:4709"
);
// For Admin
app
.
Run
(
"http://*:4708"
);
// For Production
//
app.Run("http://*:4709"); // For Admin
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment