NOTE: This plugin is no longer supported – I was let know that it still works though. If you need help with updates and custom work please post this project for our partners.
User Private Files plugin
The first step, download User Private Files and copy into your plugins folder then active it.
[update 1.1 now has a single page view for the attached file where you can have a description and other fields.]
Download User Private Files On GitHub
Second, create a page which I will just name “My Dashboard”, then paste: [userfiles]. The uploaded files will show on this page.
User Private Files Back-end
The back-end is intuitive and the admin has options such as file upload for a specific user, category assignment, user email notifications, and multilingual support.
User Files Front-End
With some CSS enhancements this is how our page “My Dashboard” should look like:
As you can see the plugin can filter the uploaded files by year or by the category assigned. Pretty cool isn’t it?
Currently, the only allowed files are the PDF’s but that can be easily modified so the admin can upload other files types such as images, documents, zips, HTML etc.
Go in the plugins folder, user-private-files/user_private_files.php then find the following line:
// Setup the array of supported file types. In this case, it's just PDF. $supported_types = array('application/pdf');
Here is a full list of supported files:"pdf" =&amp;gt; "application/pdf", "txt" =&amp;gt; "text/plain", "html" =&amp;gt; "text/html", "htm" =&amp;gt; "text/html", "exe" =&amp;gt; "application/octet-stream", "zip" =&amp;gt; "application/zip", "doc" =&amp;gt; "application/msword", "xls" =&amp;gt; "application/vnd.ms-excel", "ppt" =&amp;gt; "application/vnd.ms-powerpoint", "gif" =&amp;gt; "image/gif", "png" =&amp;gt; "image/png", "jpeg" =&amp;gt; "image/jpg", "jpg" =&amp;gt; "image/jpg", "php" =&amp;gt; "text/plain"
Now you can enable more file types like so:$supported_types = array('application/pdf','image/png','application/zip');
This plugin was custom developed for a client project as at the moment I couldn’t find any good plugins that meet these specific requirements. Feel free to use and modify it for your projects.