I've got a php form handler which takes data from an html page and creates and sends an email with one or more attachments.
I wanted to be smart and make sure a file had a size GREATER THAN 0. So I set
$attachment1_si ze = $_FILES['attachment1']['size'];
if ($attachment1_s ize > 0) {
And my 30KB file size comes up 0.
And the error codes showed no error.
When I took out the test for size and assumed (oh, bad)...