This is a forum to suggest new features for mojoPortal.
Joe,
Add the below code to SharedFilesDownload.aspx to include the content length in the http response. This allows the webbrowser to show a progress bar while downloading the file.
string downloadPath = Page.Server.MapPath(WebUtils.GetApplicationRoot() + "/Data/Sites/" + this.CurrentPage.SiteID.ToString() + "/SharedFiles/") + sharedFile.ServerFileName; System.IO.FileInfo fileInfo = new System.IO.FileInfo(downloadPath); string fileLength = fileInfo.Length.ToString(); Page.Response.AppendHeader("Content-Length", fileLength);
-Jesse
Will do.
Thanks,
Joe