+Rep Teşekkür ederim. Şöyle bir kod bloğu yazdım ama kaydetme olayını halledemedim birtürlü
<html>
<head>
<script language="JavaScript" type="text/javascript">
function SaveAs ()
{
var save_name= '<?=$dosya_adi."y"?>';
save_name= escape(save_name);
document.execCommand('SaveAs',null,save_name);
}
</script>
</head>
<body>
<form method="post" action="<?=$_SERVER['PHP_SELF'];?>" enctype="multipart/form-data">
<input type="file" name="thefile"><input type="submit" onclick="SaveAs">
</form>
</body>
<?php
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename= $dosya_adi");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".$boyut);
$dosya_adi = $_FILES['thefile']['tmp_name'];
if (($tutucu = @fopen($dosya_adi,'rb')) === false) {
exit('dosya açýlamadý');
}
ob_start();
$boyut = @fpassthru($tutucu);
@fclose($tutucu);
$dosya = ob_get_contents();
ob_end_clean();
if ($boyut === 0) {
exit('Dosya boyutu 0!');
}
#########Dosyayı oluşturduk############
$yenidosyaadi=$dosya_adi."_".rand(1,55);
touch($yenidosyaadi);
$olus = fopen ($yenidosyaadi , 'wb') or die ("Dosya açýlamadý!");
fwrite ( $olus , $dosya ) ;
fclose ($olus);
echo $yenidosyaadi;
?>
</html>