I have a PHP form for uploading files and it works fine and displays an error message if something went wrong. This is all good.
The problem is when I test with a really
max upload filesize (upload_max_filesize) max post data size (post_max_size) are the directives you need to set. I have tested it with multiple OS, browsers etc and these are the only two thing you need be worried about.