-
Notifications
You must be signed in to change notification settings - Fork 65
Ask About HttpRequest.PhysicalPath #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a tricky one as there is really no concept of physical paths in ASP.NET Core. It could probably be added to IHttpRequestPathFeature and surfaced that way. |
This may be able to be implemented by: internal interface IHttpRequestPathFeature
{
+ string? PhysicalPath { get; }
} With a default implementation that would look at OR the default implementation could just be null (looks like you check for null) since they don't really point to a physical path anymore @CZEMacLeod - I know you've looked into mapping the various |
@twsouthwick Interesting. Most of the stuff I was looking at was related to |
This change just adds the API with a default to null as we don't really have an equivalent for what a physical path is in ASP.NET Core. Fixes #373
I'm putting a change up to surface the API. If we enable #332 by exposing the internal features, then someone could build on top of it to enable some semantics that make sense here |
This change just adds the API with a default to null as we don't really have an equivalent for what a physical path is in ASP.NET Core. Fixes #373
Summary
Our repo uses
HttpRequest.PhysicalPath
which is not supported by ASP.NetCore and this adapters.I want to ask if there is equivalent and if there is plan to add them to adapter.
Motivation and goals
We need migrate code (an API in Sharepoint) to ASP.NetCore and we find that the APIs are not supported by ASP.NetCore.
In scope
HttpRequest.PhysicalPath
From src code, it uses
HostingEnvironment.MapPathInternal
which is related to this issue: Ask About System.Web.Hosting.HostingEnvironmentExamples
The text was updated successfully, but these errors were encountered: