在Linux上的blueimp jquery上载删除操作不起作用 [英] blueimp jquery upload delete on linux does not work

查看:113
本文介绍了在Linux上的blueimp jquery上载删除操作不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7环境下开发一个网站.我使用blueimp jquery上载插件,它开箱即用.当我将其上传到我的Linux php主机时,上传文件的效果很好,但是使用Delete按钮却不能.我下载了最新版本的blueimp并将其上传到我的linux php主机,它也不会删除.我在另一个托管人处有另一个托管帐户,并且也可以上传最新版本.

I'm developing a website on a windows 7 environment. I use the blueimp jquery upload plugin and it works out of the box. When I upload it to my linux php hosting uploading files works fine, but using the delete button doesn't. I downloaded the newest version of blueimp and uploaded it to my linux php hosting and it wont delete also. I have another hosting account at another hoster and uploading the newest version works also.

有人知道什么设置会引起麻烦?

Somebody an idea what setting can cause the trouble?

================================================ ==========================

===========================================================================

我安装了萤火虫,并且得到了以下内容

I installed firebug and I get the following

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /download/server/php/
on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>

php/文件夹具有755递归权限.我还将其设置为777递归.还是一样的错误.

The php/ folder had 755 recursive rights. I also set it to 777 recursive. Still the same error.

推荐答案

我也有问题,可以对其进行一些更改以使其正常运行.可能对您有帮助

I've just problem too, a have something change it for work and it run. May be it help you

  1. 首先在字体末尾需要更改按钮删除的方法 查找并替换data-type ="POST"

  1. First at font end need change method for button delete Find and replce data-type="POST"

打开文件server/php/UploadHandle.php

Open file server/php/UploadHandle.php

更改此代码

case 'POST':
  $this->post($this->options['print_response']);
break;

收件人

case 'POST':
  if ($_REQUEST['file']!='')
  {
    $this->delete($this->options['print_response']);
  } else {
    $this->post($this->options['print_response']);
  }
break;

这篇关于在Linux上的blueimp jquery上载删除操作不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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