Project

General

Profile

Actions

Feature #16469

open

Allow "contributors" to add media files

Added by Raffi Khatchadourian 2 months ago. Updated 2 months ago.

Status:
Reporter Feedback
Priority name:
Normal
Assignee:
-
Category name:
-
Target version:
-
Start date:
2022-07-15
Due date:
% Done:

0%

Estimated time:

Description

I have a "contributor" on my site that wants to add media files to her post but she can't. I found several articles on the topic:

  1. https://wpbuffs.com/how-to-allow-contributors-to-upload-images-in-wordpress/
  2. https://gigapress.net/how-to-allow-contributors-to-upload-images-in-wordpress

Looks like either the PHP code can be added or several plug-ins installed, e.g., User Role Editor, to allow her to add media files. Could you adopt one of these solutions?

Actions #1

Updated by Boone Gorges 2 months ago

  • Status changed from New to Reporter Feedback

Hi Raffi - As you note, the upload_files capability is not ascribed to the Contributor role by WordPress. See https://wordpress.org/support/article/roles-and-capabilities/ for the default role-capability matrix.

I'm wary of any changes to WP's default role definitions that will affect sites across the Commons. Users who are familiar with WordPress (or those who reference any WP documentation) will expect the Contributor role to be defined in the default way, and I don't want to upset that expectation.

User Role Editor is a very powerful tool, one that gives users the ability to make very bad security decisions. I'm also unsure how it interoperates with Multisite. It's not a viable option for the Commons.

I see two possible ways forward:

1. You change your editorial workflow so that this user could be reclassified as an Author
2. I add the upload_files capability to the Contributor role on your site only

If we go with option 2, could you please confirm the specific site where you'd like this done?

Actions #2

Updated by Raffi Khatchadourian 2 months ago

Thanks, Boone. As I would not be comfortable with the contributor publishing an article on their own (which, AFAIK, is what an "author" can do), I think option 2 would be better. It's my portfolio site, khatchad.commons.gc.cuny.edu. Thanks!

Actions #3

Updated by Boone Gorges 2 months ago

Thanks, Raffi. I've added the upload_files capability for the contributor role on khatchad.commons.gc.cuny.edu. Let me know if you're seeing what you expect.

Actions #4

Updated by Raffi Khatchadourian 2 months ago

Boone Gorges wrote in #note-3:

Thanks, Raffi. I've added the upload_files capability for the contributor role on khatchad.commons.gc.cuny.edu. Let me know if you're seeing what you expect.

Thanks, Boone. We tested it. It works now.

Actions

Also available in: Atom PDF