hey all.
i have a html file called index.html
<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
it links to a php
<?php
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}
?>
working gr8… i set the permission of “uploads” folder to 777 to be able to upload without any error…
but here’s the problem!
i have an swf file (download it from http://www.kirupa.com/developer/flash8/uploading_fileReference_pg1.htm )
and i linked it to the uploader.php.
when i upload the file… an error 403 occured !!!@#$!%!!!
i don’t know y! anybody knows!??
please help!