This commit is contained in:
venbatechnologies 2018-06-18 15:56:13 +05:30
parent 0534828956
commit 0b6c2eea19
6 changed files with 28 additions and 15 deletions

View File

@ -531,10 +531,12 @@ $prefile =array();
}
}
if(!empty($filename))
{
$myfile = array('FilePath'=>$filename,'PONO'=>$PONO);
$this->purchaseorder_model->fileupload($myfile);
}
}

View File

@ -4190,10 +4190,13 @@ $fcount = 0;
if($fcount == 0)
{
$Picture = $this->adfile();
if(!empty($new_file_name))
{ $Picture = $this->adfile();
$filelist =array('PONO'=>$pono,'IGRNO'=>$igr,'FilePath'=>$Picture);
$uploadfiles = $this->purchaseorder_model->insertfile($filelist);
}
}
if($uploadfiles > 0){
echo "file updated successfully!";

View File

@ -663,7 +663,6 @@ function uploadfile()
$pono= $this->input->post('PONO');
$new_file_name =$_FILES['file']['name'];
$files = $this->purchaseorder_model->getfies($pono);
@ -688,16 +687,22 @@ $upfile='';
if($fcount == 0)
{
$Picture = $this->adfile();
if(!empty($new_file_name))
{
$Picture = $this->adfile();
$filelist =array('PONO'=>$pono,'FilePath'=>$Picture);
$upfile = $this->purchaseorder_model->insertfile($filelist);
}
}
if($upfile > 0){
echo "file updated successfully!";
}
else{
echo "File name already Exist";
}
}

View File

@ -3894,8 +3894,11 @@ function addRow()
//alert();
var file = $('#images').val();
//alert(file);
// return false;
if (file == '' || file == undefined)
if (file=='')
{
alert('File not found');

View File

@ -5827,7 +5827,7 @@ else{
//var file = $('#imag').val();
var file = $('#images').val();
if (file=='')
if (file == '' || file == undefined)
{
alert('File not found');

View File

@ -102,7 +102,7 @@ class CI_Upload {
'image_size_str' => '',
'error_msg' => array(),
'mimes' => array(),
'remove_spaces' => TRUE,
'remove_spaces' => FALSE,
'xss_clean' => FALSE,
'temp_prefix' => "temp_file_",
'client_name' => ''