blueimp jquery upload delete on linux does not work

六月ゝ 毕业季﹏ 提交于 2019-12-11 23:05:35

问题


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:


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;


来源:https://stackoverflow.com/questions/18472277/blueimp-jquery-upload-delete-on-linux-does-not-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!