On a website that i have built I use the code below to display the time of file.zip so that people can tell if it is a new file to be downloaded.
$time = (stat("downloads/file.zip"));
$time_str = localtime($time);
the problem that i encounter is that the file name is a link to download the file but the time stamp of the file changes as soon as the file begins to be uploaded to the server. i do not have any control over the file being uploaded to the server. what i would like to do is something where the file is not downlaodable until it is completly uploaded. I will do something with an if loop and if the file is completely uploaded then I will make it a link.
What I need help with is that I need to know how to check in an if loop if the file is completely uploaded. anyone who could fill me in on the information for this I would greatly appreciate.