If you just used the integer 10240 for upload_max_filesize, then it's measured in bytes, so your limit is 10KB, not 10MB
Also be aware that you need to ensure post_max_size is at least as large as this too, and see this manual page for other pitfalls (thanks zsawyer).