Merhaba arkadaşlar jquery ile input=file nesnesiyle post metodu gönderiyorum. Ama post verisini alan dosya 'C:\fakepath\xxx.png' olarak oldığı için bunu $_FILES dizisine nasıl aktarırım.
Postu gönderen js kodu
$.post("resimekle.php",{vid:vid},function(data) {
//Diğer işlemler
});
Postu alan php kodu
<?php
if($_POST['res']) {
$res = $_POST['res'];
$file = $_FILES[$res];
}