【问题标题】:Sitecore - Upload File Error in Media LibrarySitecore - 媒体库中的上传文件错误
【发布时间】:2023-03-24 01:45:01
【问题描述】:

当我单击 Sitecore 媒体库中的“上传文件”按钮时,会引发异常。 “上传文件(高级)”按钮工作正常。

这是错误信息:

Server Error in '/' Application.
Value cannot be null.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: value

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: value]
   Sitecore.Text.UrlString.Add(String key, String value) +149
   Sitecore.Shell.Framework.Commands.Media.Upload.Run(ClientPipelineArgs args) +1801
   Sitecore.Intranet.Commands.Media.Upload.RunOverridden(ClientPipelineArgs args) +421

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +1255
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
   Sitecore.Pipelines.Processor.Invoke(PipelineArgs args) +318
   Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline) +330
   Sitecore.Pipelines.Pipeline.DoStart(PipelineArgs args) +208
   Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic) +182
   Sitecore.Web.UI.Sheer.ClientPage.RunPipelines() +280
   Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e) +530
   Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e) +25
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

知道如何解决这个问题吗?或者我想隐藏“上传文件”按钮。我该怎么做?

谢谢:)

【问题讨论】:

  • 你有什么版本的 sitecore?
  • 你能用firebug或chrome检查器检查当你点击按钮时请求的url是什么?
  • 这是我从 Firebug 得到的锚点:。这是 Sitecore 6.6。
  • 你可以试试其他浏览器的上传按钮吗?对于 sitecore 6.6,我建议在 chrome chrome.google.com/webstore/detail/ie-tab/… 上下载此扩展程序并尝试那里的上传按钮。
  • 我想你可以去核心数据库,到这个文件夹 /sitecore/content/Applications/Content Editor/Editors/Media/Media Folder/Buttons/Upload 并删除你想要的按钮

标签: sitecore media


【解决方案1】:

该按钮仅在 Firefox 中无法与您一起使用。

你可以隐藏它去核心数据库,然后删除这个项目

/sitecore/content/Applications/Content Editor/Editors/Media/Media Folder/Buttons/Upload - Multi

我测试了它,它可以工作。

【讨论】:

  • 感谢您为我指出项目的路径。我现在更改了“上传文件”按钮,以便它打开批量上传对话框:)
猜你喜欢
  • 2012-01-29
  • 2015-11-10
  • 2013-01-29
  • 1970-01-01
  • 1970-01-01
  • 2022-11-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多