将图像上传到sitecore媒体库时,为什么我在Firefox中出错?

时间:2014-01-20 17:43:51

标签: sitecore illegal-characters sitecore-media-library

每当我尝试使用Firefox将图像上传到媒体库时,都会出现弹出错误,上面写着“上传文件时出错”。检查sitecore日志后,我在stacktrace中看到以下内容:

288 11:29:27 ERROR Application error.
Exception: System.ArgumentException
Message: Illegal characters in path.
Source: mscorlib
at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access,        AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean    needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access,     String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[]   pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.File.GetLastWriteTimeUtc(String path)
at Sitecore.Resources.Media.MediaData.get_MediaId()
at Sitecore.Resources.Media.MediaCache.CanCache(Media media, MediaOptions options)
at Sitecore.Resources.Media.MediaCache.GetStream(Media media, MediaOptions options)
at Sitecore.Resources.Media.Media.GetStream(MediaOptions options)
at Sitecore.Resources.Media.MediaRequestHandler.DoProcessRequest(HttpContext context,   MediaRequest request, Media media)
at Sitecore.Resources.Media.MediaRequestHandler.DoProcessRequest(HttpContext context)
at Sitecore.Resources.Media.MediaRequestHandler.ProcessRequest(HttpContext context)
at     System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute    ()
at     System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute    ()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Heartbeat 11:30:04 WARN Memory usage exceeded the MemoryMonitor threshold.
Heartbeat 11:30:04 WARN Memory usage: 1,680,764,928
Heartbeat 11:30:04 WARN Number of suppressed logs due to the minimum time between log entries: 10

我可以说有一些非法的字符异常,但我不知道从这里看哪里。可能是什么原因造成这个问题,我该如何解决?是否在某处配置sitecore中的文件路径?

我正在使用Sitecore 6.5

1 个答案:

答案 0 :(得分:8)

我在Firefox和Safari上也有这个问题。 请将设置Upload.C​​lassic更改为true。 它将是:

 <setting name="Upload.Classic" value="true" />