i have tried serval ways for how to detect if file is not yet complete and is still being copied. but
$filemtimeNOW = date("F d Y H:i:s.", filemtime($tempPath."files/". "test.csv"));
sleep(20);
$filemtimeLATER = date("F d Y H:i:s.", filemtime($tempPath."files/". "test.csv"));
echo $filemtimeNOW . "<br>";
echo $filemtimeLATER . "<br>";
sleep(10);
if ($filemtimeNOW == $filemtimeLATER)
echo $filemtimeNOW. "finished" ;
else
echo $filemtimeNOW. "still being copied" ;
RESTULT IS
1449338332 1449338332 1449338332 finished
even if the file is still uploading via ftp it shows the total filesize i have also tried with datetime and still same problem hopesomeone have idea