Help with checking filetype and size, error in code?

Hello All,

I am new and I need help! Have been pulling my hair out all afternoon now so please if you could help I would be most grateful :slight_smile:

Cheers,

Luke

The $filesize indicates the size in bytes, so 52000 would be 52kB. Why are you using ‘tmp_name’ to discern the file extension, and not ‘name’? What exactly is going wrong? Is your script entering the if statement? If not, check your variables. It is? Check this page to see if you have made any errors in the ** MY UPLOAD CODE HERE ** section.

Sponsor our Newsletter | Privacy Policy | Terms of Service