From 116dd1a808f4e0d0958bd49eedeae32b565b4a4f Mon Sep 17 00:00:00 2001 From: xRain Date: Tue, 18 Feb 2020 07:13:16 +0800 Subject: [PATCH] fix upload --- Helpers/YYUpload.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helpers/YYUpload.cs b/Helpers/YYUpload.cs index 79c80a3..e8eeb34 100644 --- a/Helpers/YYUpload.cs +++ b/Helpers/YYUpload.cs @@ -72,7 +72,7 @@ namespace YYApi.Helpers var realPath = Directory.GetCurrentDirectory() + "/wwwroot" + filePath; if (!Directory.Exists(realPath)) { - Directory.CreateDirectory(filePath); + Directory.CreateDirectory(realPath); } var fn = fileName + (string.IsNullOrEmpty(ext) ? string.Empty : $".{ext}"); File.WriteAllBytes(realPath + fn, bt);