Every good CMS would have a bunch of native functions, that are not so obvious at first, but extremely useful. WordPress has its own set of tricks up its sleeve, one of them being this function for uploading media.
To read the full article, click on this link: http://premium.wpmudev.org/