WebApi/Gs.HostIIS/Program.cs
@@ -28,8 +28,8 @@ options.AddPolicy("AllowAll", builder => { builder.AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader(); .AllowAnyMethod() .AllowAnyHeader(); }); }); builder.Services.AddCustomConvention(); @@ -111,7 +111,7 @@ }); //添加上传路径 var _upPath = AppContext.BaseDirectory + AppSettingsHelper.getValueByKey("UploadPath"); AppSettingsHelper.getValueByKey("UploadPath"); app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider(_upPath),