As it relates to uploading files in WordPress, the CMS offers some convenient API functions that make it easy for developers.

The standard uploads directory in a WordPress installation.
Some of these functions include:
These functions, though, often require us to limit our files to the uploads directory. And many times, that’s great. It gives us a single place to store our files and it gives us one place to retrieve our files when needed.
But if you’re working on a web application or even an advanced plugin, this isn’t always the ideal situation. For example, let’s say that you have a plugin in which you want to have your own uploads directory, and that’s where you want to store your files.
What do you do in that case?



