doujiu8479 2013-08-27 17:49
浏览 43

linux上的blueimp jquery上传删除不起作用

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>

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

  • 写回答

1条回答 默认 最新

  • dongli8466 2015-06-13 03:46
    关注

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

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

    2. Open file server/php/UploadHandle.php

    Change this code

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

    To

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

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度