This commit is contained in:
2026-01-23 09:57:52 +01:00
commit 831badd188
136 changed files with 7705 additions and 0 deletions

View File

@ -0,0 +1,22 @@
namespace PdfMarker.Services;
public class PdfStorageService
{
private readonly IWebHostEnvironment _env;
public PdfStorageService(IWebHostEnvironment env)
{
_env = env;
}
public async Task SaveAsync(IFormFile file)
{
var path = Path.Combine(_env.WebRootPath, "pdf");
Directory.CreateDirectory(path);
var filePath = Path.Combine(path, file.FileName);
using var stream = File.Create(filePath);
await file.CopyToAsync(stream);
}
}