Thuurke
Thuurke

Reputation: 141

blueimp jquery upload delete on linux does not work

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.

Upvotes: 0

Views: 1055

Answers (1)

Tran Khai Hoa
Tran Khai Hoa

Reputation: 11

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;

Upvotes: 1

Related Questions