Error when uploading files

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/19/2014 11:01:41 PM
Gravatar
Total Posts 68

Error when uploading files

Hi,

I am running 2.3.9.9 MSSQL
Operating System Microsoft Windows NT 6.1.7601 Service Pack 1
ASP.NET Info v4.0.30319 Running in Full Trust
 

My users are reporting that they can not upload files using the TinyMCE or the File Manager.

I tried renaming the file, using different file formats. Nothing works.

I know there were some Windows Updates done over the last week including some security updates to the DotNet framework.

This is the logged error.

2014-11-20 10:24:09,028 ERROR 10.1.123.29 - en-US - /Services/FileService.ashx?cmd=upload&t=ea786227-173b-4159-a970-da7ec28db73b - mojoPortal.Web.Global -  Referrer(https://mydomain/Dialog/FileManagerDialog.aspx) useragent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
   at System.IO.PathHelper.GetFullPathName()
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.FileInfo..ctor(String fileName)
   at mojoPortal.FileSystem.DiskFileSystem.UpdateInfo(String virtualPath)
   at mojoPortal.FileSystem.DiskFileSystem.UpdateInfo(String virtualPath)
   at mojoPortal.FileSystem.DiskFileSystem.UpdateInfo(String virtualPath)
   at mojoPortal.FileSystem.DiskFileSystem.UpdateInfo(String virtualPath)
   at mojoPortal.FileSystem.DiskFileSystem.UpdateInfo(String virtualPath)
   at mojoPortal.FileSystem.DiskFileSystem.UpdateInfo(String virtualPath)
   at mojoPortal.FileSystem.DiskFileSystem.UpdateInfo(String virtualPath)
   at mojoPortal.FileSystem.DiskFileSystem.UpdateInfo()
   at mojoPortal.FileSystem.DiskFileSystem.CountAllFiles()
   at mojoPortal.Web.Services.FileService.Upload(HttpContext context)
   at mojoPortal.Web.Services.FileService.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

11/21/2014 7:33:43 AM
Gravatar
Total Posts 18439

Re: Error when uploading files

that kind of error makes me think you have a virtual folder configured that points outside of the web to a different file system path and now it gives an error about that path being too long. I'm not sure what would suddenly cause the error but I would try reconfiguring or recreating the virtual folder to see if that solves it. 

You must sign in to post in the forums. This thread is closed to new posts.