Skip to content

Commit c28fed9

Browse files
committed
Fixing the path check.
1 parent 84e6a4b commit c28fed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eFormAPI/eFormAPI/Controllers/TemplateFilesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public HttpResponseMessage UploadEformZip()
232232
{
233233
var filePath = Path.Combine(zipArchiveFolder, Path.GetFileName(httpPostedFile.FileName));
234234
var extractPath = Path.Combine(saveFolder);
235-
if (File.Exists(filePath))
235+
if (!File.Exists(filePath))
236236
{
237237
httpPostedFile.SaveAs(filePath);
238238
}

0 commit comments

Comments
 (0)