From 51828249521e353800e25eca3960ffca0d3c4235 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Mon, 7 Apr 2014 12:33:21 +0000 Subject: [PATCH] =?UTF-8?q?bezeichnung=20und=20titel=20auf=2032=20zeichen?= =?UTF-8?q?=20beschr=C3=A4nkt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/akteupload.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/akteupload.php b/content/akteupload.php index 2ebd7bac3..5e41c1cb2 100644 --- a/content/akteupload.php +++ b/content/akteupload.php @@ -26,7 +26,7 @@ require_once('../include/functions.inc.php'); require_once('../include/person.class.php'); require_once('../include/benutzerberechtigung.class.php'); require_once('../include/akte.class.php'); -require_once ('../include/dokument.class.php'); +require_once('../include/dokument.class.php'); require_once('../include/dms.class.php'); require_once('../include/phrasen.class.php'); @@ -129,7 +129,7 @@ if(isset($_POST['submitbild'])) $dokument->loadDokumenttyp($_REQUEST['dokumenttyp']); $extension = end(explode(".",strtolower($_FILES['file']['name']))); - $titel = ''; + $titel = $_REQUEST['dokumenttyp']; // da nur 32 zeichen gespeichert werden dürfen, muss anhand vom typ gekürzt werden if($_REQUEST['dokumenttyp']=='Lebenslf') @@ -142,10 +142,10 @@ if(isset($_POST['submitbild'])) $titel = $p->t('incoming/zeugnis').".".$extension; if($_REQUEST['dokumenttyp']=='Lichtbil') $titel = $p->t('incoming/lichtbild').".".$extension; - + // alle auf 32 $akte->dokument_kurzbz = $_REQUEST['dokumenttyp']; - $akte->bezeichnung = $_FILES['file']['name']; + $akte->bezeichnung = substr($_FILES['file']['name'],0,32); // auf 32 $akte->person_id = $_GET['person_id']; //$akte->inhalt = base64_encode($content); $akte->mimetype = $_FILES['file']['type'];