Skip to content

Commit 2a5f0bf

Browse files
.
1 parent c1b53c2 commit 2a5f0bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ShareXUploadApi/Services/FileService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public FileService(ILogger<FileService> logger)
5757

5858
try
5959
{
60-
using Stream stream = new FileStream(folderPath + file.Guid + fileExtension, FileMode.Create);
60+
using Stream stream = new FileStream(Path.Combine(folderPath, file.Guid) + fileExtension, FileMode.Create);
6161
file.File.CopyTo(stream);
6262
return (true, null);
6363
}

0 commit comments

Comments
 (0)