/// <summary> /// Gets a path like "data/3148e1e2-bd6b-4623-b72a-5408263b9056-Some-Data-File.csv" /// </summary> public static string GetUnrootedDataPath(Guid recordId, string filePath) { string fileName = Path.GetFileName(filePath); // make a file name suitable for the web string name = WebificationUtility.ToUrlFriendlyString(fileName); return(String.Format("data/{0}-{1}", recordId, name)); }
public string test_to_url_friendly_string(string s) { return(WebificationUtility.ToUrlFriendlyString(s)); }