Exemple #1
0
        //
        // GET: /FileViewer/

        public ActionResult Index(string folderid, string id, string title, int?ver)
        {
            try
            {
                id = Decode(id);
            }
            catch (Exception err)
            {
                _log.Error(string.Format("Decode error. FileId: {1}. UserAgent :{0}", HttpContext.Request.UserAgent, id), err);
            }

            var viewerUrl = FilesLinkUtility.GetFileWebViewerUrlForMobile(id, ver.HasValue ? ver.Value : 0);

            Response.Redirect(viewerUrl);

            return(null);
        }