eliminacion * y saltos de linea
This commit is contained in:
@@ -57,17 +57,17 @@ function enviar() {
|
||||
|
||||
$conn = getConnection();
|
||||
|
||||
$empresa = encrypt($_POST['company_name'] ?? '');
|
||||
$rfc = encrypt($_POST['rfc'] ?? '');
|
||||
$email = $_POST['email'] ?? '';
|
||||
$telefono = $_POST['phone'] ?? '';
|
||||
$archivo = $_FILES['opinion_file'];
|
||||
$empresa = encrypt($_POST['company_name'] ?? '');
|
||||
$rfc = encrypt($_POST['rfc'] ?? '');
|
||||
$email = $_POST['email'] ?? '';
|
||||
$telefono = $_POST['phone'] ?? '';
|
||||
$archivo = $_FILES['opinion_file'];
|
||||
|
||||
// Validar archivo
|
||||
if ($archivo['error'] !== 0 || pathinfo($archivo['name'], PATHINFO_EXTENSION) !== 'pdf') {
|
||||
die("Archivo inválido. Solo se permiten PDFs.");
|
||||
}
|
||||
|
||||
// Validar archivo
|
||||
if ($archivo['error'] !== 0 || pathinfo($archivo['name'], PATHINFO_EXTENSION) !== 'pdf') {
|
||||
die("Archivo inválido. Solo se permiten PDFs.");
|
||||
}
|
||||
|
||||
|
||||
// Guardar archivo
|
||||
$nombreArchivo = uniqid() . '_' . basename($archivo['name']);
|
||||
|
||||
Reference in New Issue
Block a user