You need to include this hidden field in you form:
<input type='hidden' name='MAX_FILE_SIZE' value='1000000'>
The function you're showing.....just gonna take out the spaces on the string :glare:
And calculate some file sizes......
<INPUT TYPE="FILE" NAME="" SIZE="">
Actually......this must have a name :p
So let's called send_file.....ok?
When you submit the form.....the file is sended to the server......so you just need to check if it's really there 😃
$directory = 'upload/';
$Filez = $directory . $_FILES['send_file']['name'];
if(move_uploaded_file($_FILES['send_file']['tmp_name'], $Filez))
{
......blah,blah,blah
//If you get here....The file is Ok
}
Greetings,
Blag :evilgrin: