Uploading File Size Drupal7

Drupal and the server by default limits the file size to 2MB to change this you need first to change the php.ini file in the root of drupal directory, if it exist if not create a php.ini file and set uploadmaxfilesize = 2024M or whatever value you would like to, the other thing that yo need to do is to change a core drupal file file.inc which is at this location includes/file.inc at around line 2073 function fileuploadmaxsize here you just need to change a variable (static $maxsize) this variable stores the file size in byte, so to get the right number you have to covert the value in bytes.