debug name files bd
This commit is contained in:
committed by
GitHub
parent
fff6f2c6fd
commit
f22ddcff66
@ -110,15 +110,15 @@ class formEditPromotion extends Form{
|
||||
|
||||
if ( $ok ) {
|
||||
$tmp_name = $_FILES['archivo']['tmp_name'];
|
||||
|
||||
if ( !move_uploaded_file($tmp_name, "../img/promos/{$nombre}") ) {
|
||||
$nombreBd = str_replace(" ", "_", $tittle).".".pathinfo($nombre, PATHINFO_EXTENSION);
|
||||
if ( !move_uploaded_file($tmp_name, "../img/promos/{$nombreBd}") ) {
|
||||
$result['img'] = 'Error al mover el archivo';
|
||||
}
|
||||
|
||||
//if ( !copy("../img/tmp/{$nombre}", "/{$nombre}") ) {
|
||||
// $result['img'] = 'Error al mover el archivo';
|
||||
//}
|
||||
$nombreBd = str_replace("_", " ", $nombre);
|
||||
//$nombreBd = str_replace("_", " ", $nombre);
|
||||
$bd->editPromotion($id, $tittle,$description,$code,$active, $nombreBd);
|
||||
$_SESSION['message'] = "<div class='row'>
|
||||
<div class='column side'></div>
|
||||
|
Reference in New Issue
Block a user