и только такого-то размеа?
html файл
- Код: Выделить всё • Развернуть
<form action="upload2.php" method="post" enctype="multipart/form-data">
Выберете файл:<input type="file" name="file" id="file" >
<input type="submit" name="submit" value="Загрузить" >
</form>
upload2.php
- Код: Выделить всё • Развернуть
<?php
$unique_id = ...........;
$files = $unique_id;
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "..........";
}
if (file_exists("/php/upload/" . $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"T:/home/virtual/proekts.vfose.ru/userbar/upload/".$files.".png");
echo "............";
}
?>