
WordPress: Allow Contributors To Upload Files
- Updated On 23/04/2011
- Author : Pradeep Kumar
- Topic : WordPress
- Short URL : https://hellboundbloggers.com/?p=6865
CONNECT WITH HBB ON SOCIAL MEDIA
Lot of contributors suffered from this problem. They can’t able to upload any kind of files through their dashboard. I also got lot of complaints regarding this. So just thought of sharing this.
Actually there are two ways to allow contributors to upload files. Either you can try a WordPress plugin (Recommended) or try some coding.
But personally I prefer the WordPress plugin method. Through which you can increase the capabilities of contributors.
A Contributor is somebody who can write and manage their posts but not publish them.
1. WordPress Plugin – Capability Manager

Check Upload Files In Capabilities for Contributor | User role
#1. Install and activate Capability Manager Plugin.
#2. Go to Users | Capabilities.
#3. Select Capabilities for Contributor|User role.
#4. Check Upload Files and Save.
2. Paste the following Code in functions.php
if ( current_user_can('contributor') && !current_user_can('upload_files') )
add_action('admin_init', 'allow_contributor_uploads');
function allow_contributor_uploads() {
$contributor = get_role('contributor');
$contributor->add_cap('upload_files');
}
Just paste the above code snippet in your theme’s functions.php file and for thesis users, just copy and paste the code in custom_functions.php file.
First of all, make sure you take a backup of functions.php or custom_functions.php file before implementing this tutorial. Play it safe.
If you enjoyed this article, please consider sharing it! 🙂
Want to discuss your queries and interact with experts? You can connect with HellBound Bloggers (HBB) Facebook group for free!
Join HellBound Bloggers (HBB) and get Instant Updates. We'll also notify you with Great Deals, Discounts and other Interesting Tips. We won't SPAM or SHARE your Email Address with anyone.
YOU CAN ALSO SEARCH FOR YOUR DESIRED TOPICS:
Thank you for reading! We welcome and appreciate your comments, but at the same time, make sure you are adding something valuable to this article. If you have any serious queries, suggestions or anything related to this article, feel free to share them, we really appreciate that.
But, if your blog comments are a random "Thank you", "Useful Post", or anything that doesn't actually upscale the article, then we'll be removing them and it won't be appeared below. Thanks for understanding and thanks for connecting with us. If you want to give us any feedback or report any errors, you can kindly contact us and we'll revert back soon.
- Comments
- Facebook Comments
-
Comments
Leave a Reply
27 Comments
Facebook Comments
Amandeep Singh
Thanks, buddy.. just opened guest posting on one of my blogs… didn’t want to give the author role to guest authors – this tutorial helped me give the desired permissions to the contributor role…
Thanks,
Aman
Sharma
Using "Capability Manager" I have allowed contributors to upload media to the media library of my wordpress website
srikanth
wow! will try this badly needed this and thanx a ton man,,,g8 job……………….
i need a pluign for visitors to be allowed to download the uploads any help…pls
Dustin
Excellent post. Deff more helpful than the codex for this specific need.
Cheer!
Sandeep Tripathy
This plugin is rocking!!
Pranav Jain
Really a useful plugin!
aatif
i am using caps maneger plugin it does all .
Vincenzo @ dementor costumes
This plugin is really amazing. It serves not only as contributor but also serves as author, editor, administrator, subscriber as well.Thanks for sharing this valuable information.
Joel from hgh
Pradeep. Thanks for heads up. I was using a similar plugin called role manager for my blog and problem was that it wasn’t updated since long so had compatibility issues. This plugin is almost similar in functionality but its compatible with 3.0.
Chris at Nuradu
How are you responding the the May Day update from Google?
Robin
i love this plugin. successfully transformed my blog as multi author blog. 🙂
– Robin
Dev @ Blogging Tips
Awesome plugin ….bro ..
Thanks for sharing 🙂
Shiva | Web Magazine
I think the role manager plugin also does the same thing and not only for contributor but for each role like author, editor, administrator, subscriber
UK webmaster forum
Great plugin, wordpress rocks… thanks for sharing
Tech Sputter
Really a good plugin man….i think it simplifies our time 🙂 🙂 🙂
Directory Sieve
Going to try this out, however i feel that wordpress needs to add such features in the coming updates, the user management panel/moderator panel etc. should be given more importance.
mobile phone
Why are people so afraid of coding stuff their self?
Samuel
Nice post bro thanks alot!
Dennis Edell | Direct Sales Marketing
Two questin:
During the latest rash of hacked blog, several concluded it wa because of a backdoor open due to allowing contributors in such a manner; any thoughts on this?
Is there a readme file in the package showing the code you display here?
Jack
I also used to face this problem of attaching my file thanks For sharing this
useful Plugins with all of us,It’ll definately save lot of time of all wordpress user.
Bürostühle
Thanks for sharing this post & I am working on it from last many months & I trying to develop code for it.
Go4webapps
great plug-in,,, gonna use it
chandan@work at home blog
I think that will be one great plug in. I will have to check the plug in.
Sandeep
Hey Pradeep,
Thanks for the post. I have tried some coding, but after seeing this post, im using this plugin 😀
Sourish
nice plugin. good to moderate permissions
Melody
Another great resource I’ll have to bookmark for future reference! =)
It’s probably also a good idea to suggest appropriate file sizes for uploading images onto your site.
Apex Tier Technologies
Awesome plugin, that save my lots of time, Thanks.