summaryrefslogtreecommitdiff
path: root/Controllers/ProductsController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Controllers/ProductsController.cs')
-rw-r--r--Controllers/ProductsController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Controllers/ProductsController.cs b/Controllers/ProductsController.cs
index 79b4efd..9c1cdd2 100644
--- a/Controllers/ProductsController.cs
+++ b/Controllers/ProductsController.cs
@@ -88,8 +88,8 @@ namespace MyDarling.Controllers
{
Directory.CreateDirectory(directoryPath);
}
- using var fileStream = new FileStream(fullPath, FileMode.Create);
- await file.CopyToAsync(fileStream);
+
+ resizer.WriteResized(file, fullPath);
}
if (!string.IsNullOrEmpty(fullPath))