I am writing my first plugin to upload PDF files to a user specified directory other than the media directory specified in the Media menu under settings.
I need to extend the WP's native uploader so that files of a particular type in this case PDFs are uploaded to a different directory unlike images. In addition files uploaded in this user defined directory should be viewable in the native upload/insert window whenever the need arises to insert them into a page or a post.
Is it possible to extend WP's native uploader through a plugin or would I have to design my own uploader? This seems to be overkill for just one type of file considering that there is already an excellent uploader available.
I do not think that delving into WP's code and changing it is an option.
Thanks in advance.