'ontable' =>'crm_mailing_list_message'
));
$htmlFile->onUpload(false);
- // print_r($htmlFile);
+
if($htmlFile->mimetype != 'text/html')
{
$this->jerr('accept html file only!');
$data = $this->convertStyle('', $htmlFile->getStoreName(), false);
$htmlFile->delete();
+
unlink($htmlFile->getStoreName()) or die('Unable to delete the file');
$this->jok($data);