<?php
if(isset($_FILES['dosya']) && !empty($_FILES['dosya'])){
$uzanti = end(explode('.', $_FILES['dosya']['name']));
if($uzanti == 'swf'){
$dosya_yol = 'dosyalar/'.substr(md5(microtime()), 0, 8).'.swf';
move_uploaded_file($_FILES['dosya']['tmp_name'], $_SERVER['DOCUMENT_ROOT'].$dosya_yol);
echo '<a href="http://siteadi.com/'.$dosya_yol.'">Dosya goruntule</a>';
}else{
echo 'gecersiz dosya uzantisi';
}
}
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="dosya" />
<input type="submit" value="Yukle!" />
</form>bunu deneyebilirsin