Home > Net >  By the.net 3.1 MVC core of the relative path to make dizzy, consult the correct usage
By the.net 3.1 MVC core of the relative path to make dizzy, consult the correct usage

Time:07-11

publish web site & # xff0c; Address the following

http://*/pw

photo news & # xff0c; Uploadfiles under the image path is saved in the below directory & # xff0c; Startup configuration useEndpoints, default {controller & # 61; Home}/{action & # 61; The Index}

1 # & xff1a problem; Open the url & # xff0c; Pictures don't show & # xff0c; Picture address for uploadfiles/p1. The JPG, go to http://*/pw/home pictures show

problem # 2 & xff1a; There is a docuController & # xff0c; Open http://*/pw/docu/docudetail? Id & # 61; 1 # & xff0c; Picture address for uploadfiles/p1. The JPG & # xff0c; Pictures don't show & # xff0c; Instead../uploadfiles/p1. JPG & # xff0c; The picture shows the

how be to return a responsibility excuse me & # xff0c; If you open http://*/pw images can display & # xff0c; What should use relative path & # xff0c; At the same time does not affect http://*/pw/home pictures show

  •  Tags:  
  • Related