Wie realisiere ich einen Dateiupload ?
Ich möchte einen Dateiupload in eine HTML einbinden wie geht das genau bitte um Hilfe
Danke
Danke
Please also mark the comments that contributed to the solution of the article
Content-Key: 32290
Url: https://administrator.de/contentid/32290
Printed on: April 24, 2024 at 11:04 o'clock
6 Comments
Latest comment
form:
<input type=thefile name=datei>
submit:
<?php
$path="/unix/pfad/auf/dem/webserver/";
$filename = "";
$time=time();
if ($HTTP_POST_FILES['thefile']['tmp_name']<> 'none')
{
$file = $HTTP_POST_FILES['thefile']['name'];
$temp = $HTTP_POST_FILES['thefile']['tmp_name'];
$path_parts = pathinfo($file);
$dest = $path."".$file;
copy($temp, $dest);
echo"<table width=\"100%\"><tr><td width=\"100%\">Passt !!!!</td></tr></table>";
}
else
{echo"<table width=\"100%\"><tr><td width=\"100%\">Passt net !!!td></tr></table>";}
?>
gut die auswertung ist php sollte aber zu verkraften sein
gruss
chris
<input type=thefile name=datei>
submit:
<?php
$path="/unix/pfad/auf/dem/webserver/";
$filename = "";
$time=time();
if ($HTTP_POST_FILES['thefile']['tmp_name']<> 'none')
{
$file = $HTTP_POST_FILES['thefile']['name'];
$temp = $HTTP_POST_FILES['thefile']['tmp_name'];
$path_parts = pathinfo($file);
$dest = $path."".$file;
copy($temp, $dest);
echo"<table width=\"100%\"><tr><td width=\"100%\">Passt !!!!</td></tr></table>";
}
else
{echo"<table width=\"100%\"><tr><td width=\"100%\">Passt net !!!td></tr></table>";}
?>
gut die auswertung ist php sollte aber zu verkraften sein
gruss
chris