WordPress-File is empty error –please uplaod something more substantial

Today,I set up the WordPress.org blog application on my website.The 5 minute install was exactly good. But whenever I tried to upload a media file I was encountered with the below Error. 

File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.

The concept on how to fix this issue is complex, yet the solution is easy.
Go to your cPanel,Create a new file named php.ini
After that placed the following code into your php.ini file:

<?php phpinfo() ?> memory_limit = 128M

Basically, it changes the configurations set by your hosting company as to what file size you are allowed to upload.
Just save the file and then everything will back into normal.
Happy blogging!