| Current Path : /home/azimutno/www/demo/plugins/system/jsnframework/assets/3rd-party/jquery-file-upload/ |
| Current File : /home/azimutno/www/demo/plugins/system/jsnframework/assets/3rd-party/jquery-file-upload/delete.php |
<?php
$output_dir = "uploads/";
$input = JFactory::getApplication()->input;
$postData = $input->getArray($_POST);
if(isset($postData["op"]) && $postData["op"] == "delete" && isset($postData['name']))
{
$fileName =$postData['name'];
$filePath = $output_dir. $fileName;
if (file_exists($filePath))
{
unlink($filePath);
}
echo "Deleted File ".$fileName."<br>";
}
?>