I currently have a website that is serving static files from a simple website that just points to a directory and I want to replace it by grabbing the files from DropBox.
I already have the files on DropBox and grabbing them is easy BUT I now need a website that will parse the URL to the files and give me the parameters I need to access the files on DropBox.
Typical file URL:
http://companyfiles.mywebsite.com/18/RepZio/companyfiles/subfolder1/SampleFile.docx
The route I configured that I hoped would work:
routes.MapRoute(
name: "Default",
url: "{id}/{dropboxfolder}/companyfiles/{path}",
defaults: new { controller = "CompanyFiles", action = "Index" }
);
I know my issue is all of the extra /
's in my URL, how can I parse whatever comes after /companyfiles/
to be a single parameter?
I cannot change the URL's that are being called since they already exist everywhere else in my system.