doc and pdf upload possibility (Features)
Hi,
close the brace at the end of that line:
if (endsWith($_FILES['probe']['name'], ".zip") || endsWith($_FILES['probe']['name'], ".pdf")) {
Sorry, I do not check the code in use.
break;
case 4:
$filename .= '.doc';
break;
case 5:
$filename .= '.pdf';
break;
}
You can delete your new cases, because they are out of reach.
}
//....
else
You can delete my comment-placeholder (//...)
, too.
Do you define the new function endsWith
anywhere?
regards Micha
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences