mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
feat : after upload presupuesto file send to sftp server
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
namespace App\Controllers\Presupuestos;
|
namespace App\Controllers\Presupuestos;
|
||||||
|
|
||||||
use App\Entities\Presupuestos\PresupuestoEntity;
|
use App\Entities\Presupuestos\PresupuestoEntity;
|
||||||
|
use App\Libraries\SafekatFtpClient;
|
||||||
use App\Models\Collection;
|
use App\Models\Collection;
|
||||||
use App\Models\Configuracion\PapelGenericoModel;
|
use App\Models\Configuracion\PapelGenericoModel;
|
||||||
use App\Models\Configuracion\TipoPresupuestoModel;
|
use App\Models\Configuracion\TipoPresupuestoModel;
|
||||||
@ -892,7 +893,10 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!is_null($new_name)){
|
if(!is_null($new_name)){
|
||||||
move_uploaded_file($tmp_name, WRITEPATH . 'uploads/presupuestos/' . $new_name);
|
$path = WRITEPATH . 'uploads/presupuestos/' . $new_name;
|
||||||
|
move_uploaded_file($tmp_name,$path);
|
||||||
|
$ftp = new SafekatFtpClient();
|
||||||
|
$ftp->uploadFilePresupuesto($presupuesto_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user