app.UseStaticFiles(new StaticFileOptions()//自定义自己的文件路径
{
FileProvider = new PhysicalFileProvider(Environment.CurrentDirectory + @"/图片"),//路径
RequestPath = new PathString("/图片"),//对外的访问路径
});
app.UseStaticFiles(new StaticFileOptions()//自定义自己的文件路径
{
FileProvider = new PhysicalFileProvider(Environment.CurrentDirectory + @"/图片"),//路径
RequestPath = new PathString("/图片"),//对外的访问路径
});
本文标题:启用图片URL访问
本文链接:https://www.haomeiwen.com/subject/rtygxltx.html
网友评论