删除时的JQuery-File-Upload 404错误 [英] JQuery-File-Upload 404 Error on Delete

查看:116
本文介绍了删除时的JQuery-File-Upload 404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用NUGET安装了JQuery-File-Upload(和Backload)到我的VS2013 MVC 4.5.1项目中.

I installed JQuery-File-Upload (and Backload) using NUGET into my VS2013 MVC 4.5.1 project.

文件上传效果很好,我成功上传了3个文件.

The file upload works great and I successfully uploaded 3 files.

但是,当我尝试删除任何文件时,页面上什么都没有发生,并且Fiddler报告404错误.

However, when I attempt to delete any of the files, nothing appears to happen on the page and Fiddler reports a 404 error.

此外,所有文件都存在,并且其中的文件夹和文件已完全控制为所有人.

Moreover, all the files exist and the folder and files within them have been set to EVERYONE with full control.

还请注意,下面的消息为backload的处理程序指定了一条路径,但是该路径不存在……应该吗?

Also note, the message below specifies a path for backload's handler, but, the path doesn't exist ... should it?

C:\ Projects \ AustinTexasKarate \ Web \ Backload \ UploadHandler不存在.

C:\Projects\AustinTexasKarate\Web\Backload\UploadHandler doesn't exist.

以下是Fiddler的结果.

Below are the results from Fiddler.

请注意错误代码:0x80070002.

Note the error code: 0x80070002.

有人知道为什么删除在我的系统上不起作用或无法提供线索吗?我错过了什么吗?

Does anyone know why delete doesn't work on my system or could provide clues? Did I miss something?

HTTP错误404.0-找不到

HTTP Error 404.0 - Not Found

您要查找的资源已被删除,名称已更改或暂时不可用.

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

最可能的原因: •指定的目录或文件在Web服务器上不存在. •URL包含印刷错误. •自定义过滤器或模块(例如URLScan)会限制对文件的访问.

Most likely causes: •The directory or file specified does not exist on the Web server. •The URL contains a typographical error. •A custom filter or module, such as URLScan, restricts access to the file.

您可以尝试的操作: •在Web服务器上创建内容. •查看浏览器URL. •检查失败的请求跟踪日志,并查看哪个模块正在调用SetStatus.欲了解更多信息,请点击这里.

Things you can try: •Create the content on the Web server. •Review the browser URL. •Check the failed request tracing log and see which module is calling SetStatus. For more information, click here.

详细的错误信息:

模块化IIS Web核心

Module IIS Web Core

通知MapRequestHandler

Notification MapRequestHandler

处理程序StaticFile

Handler StaticFile

错误代码0x80070002

Error Code 0x80070002

请求的URL
/Backload/UploadHandler?fileName=youth_lineup.jpg&uploadContext=C:%5CProjects%5CAustinTexasKarate%5CWeb%5Cfiles%5Cphotos

Requested URL
/Backload/UploadHandler?fileName=youth_lineup.jpg&uploadContext=C:%5CProjects%5CAustinTexasKarate%5CWeb%5Cfiles%5Cphotos

物理路径
C:\ Projects \ AustinTexasKarate \ Web \ Backload \ UploadHandler

Physical Path
C:\Projects\AustinTexasKarate\Web\Backload\UploadHandler

匿名登录方法

匿名登录用户

请求跟踪目录
C:\ Users \ Roy \ Documents \ IISExpress \ TraceLogFiles \ WEB

Request Tracing Directory
C:\Users\Roy\Documents\IISExpress\TraceLogFiles\WEB

更多信息:此错误意味着文件或目录没有 存在于服务器上.创建文件或目录,然后尝试请求 再次.查看更多信息»

More Information: This error means that the file or directory does not exist on the server. Create the file or directory and try the request again. View more information »

推荐答案

每个

Per the Backload FAQ, you can tweak your Web.config to enable DELETEs without 404ing:

<system.webServer>
  <handlers accessPolicy="Read, Write, Execute">
      <remove name="WebDAV" />
      <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
      <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,POST,PUT,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
      <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,POST,PUT,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,POST,PUT,DELETE" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    ...
</system.webServer>

这篇关于删除时的JQuery-File-Upload 404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆