I'm having trouble building this script.
I'm trying to check the file size of the temp file multiple times.
Here's what I've tried so far:
Code: Select all
if(move_uploaded_file($_FILES['userfile']['tmp_name'], $target_path))
{
for($i=0; $i<=10; $i++)
{
$cksize = filesize($_FILES['userfile']['tmp_name']);
echo '<br>'.$cksize;
}
echo "<br>The file has been uploaded";
}I'm not even sure this can be done. Maybe I didn't understand the way move_uploaded_files() works.
If I can get multiple values of the file size while uploading I could do some nifty little things
Thanks for the tip on including the
Code: Select all
code.