We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b53c2 commit 2a5f0bfCopy full SHA for 2a5f0bf
ShareXUploadApi/Services/FileService.cs
@@ -57,7 +57,7 @@ public FileService(ILogger<FileService> logger)
57
58
try
59
{
60
- using Stream stream = new FileStream(folderPath + file.Guid + fileExtension, FileMode.Create);
+ using Stream stream = new FileStream(Path.Combine(folderPath, file.Guid) + fileExtension, FileMode.Create);
61
file.File.CopyTo(stream);
62
return (true, null);
63
}
0 commit comments