public FileSystemStorageProvider(string basePath, string siteUrl, IHttpContextProvider httpContextProvider) { _httpContextProvider = httpContextProvider; _baseUrl = _httpContextProvider.MapPath("//"); _siteUrl = siteUrl; _storagePath = basePath; if (!_baseUrl.EndsWith("/")) { _baseUrl = _baseUrl + '/'; } }