blueimp/jQuery-File-Upload — Issue #853: Can't delete - custom folder
Author: Zedith
Created: 2011-12-07 15:23:30+00:00
State: open

I cant seem to delete a file after I changed the upload folder.
I don't get an error or anything...just nothing happens when I click the delete button :/

I'm actually getting the path to the upload folder from Mysql and that seems to work fine. Added some messy code to the "__construct" function but it works when I upload but not delete :/

When i change the upload_dir and upload_url back to original I can delete again.

$check = mysql_query("SELECT * FROM nxxs WHERE news_id = '".$_POST['newsid']."'")or die(mysql_error());
while($info = mysql_fetch_array( $check )){
$news_url = $_SERVER['DOCUMENT_ROOT'].$info['news_url']."/";
$news_url2 = "Http://www.domain.com".$info['news_url']."/";
}
$this->options = array(
'script_url' => $this->getFullUrl().'/'.basename(__FILE__),
//'script_url' =>$news_url,
'upload_dir' =>$news_url,
'upload_url' =>$news_url2,

the output of $news_url is : /home/domain/public_html/is/frettir/frett_1/"
and $news_url2 is : Http://www.domain.com/is/frettir/frett_1/

Does the delete function not just use the same "upload_dir" option as the upload?
Any help would be appreciated :(