test whether a path is in public web directory?

F

flipdoubt

Are there any specialized methods for determining whether a path or UNC points
to a location within a site's web directories? Are there any methods for
turning an absolute path into a relative URL?

My app has UNCs stored in a database and needs to serve the files that the
UNC points to. If the UNC is within the site, I just need to return a relative
path. If it isn't, I need to copy the file to a public cache and return a
relative path to the cached file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top