Posted by:
sn666
(---.lubin.dialog.net.pl)
Hi,
I have problem with uploading files (size and kind of file is indifferent). I use this simple script to upload:
<form method="post" action="test2.php" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="30000000">
Choose file:<br>
<input type="file" name="my_file"><br>
<input type="submit" value="Upload"><bR><Br><Br>
test2.php:
<?php
if(isset($_FILES["my_file"]))
{
if (!is_uploaded_file($_FILES['my_file'])) die ('file not uploaded');
move_uploaded_file($_FILES['my_file']['tmp_name'],"pliki/".$_FILES['my_file']['name']);
} else {echo 'no file';}
?>
If I upload file i have 'file not uploaded' message.. why ?
Can't copy or move file becouse it isn't in tmp folder.
my old scripts aren't working too

I have Wamp5 server 1.6.1
What can be wrong ?
Thx 4 Your time