[wp-trac] [WordPress Trac] #29010: Allow file upload from unregistered users

WordPress Trac noreply at wordpress.org
Wed Jul 23 16:01:24 UTC 2014


#29010: Allow file upload from unregistered users
-------------------------+-----------------------------
 Reporter:  firebird75   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  3.9.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 I am trying to embed the media uploader in the frontend. I am able to make
 it work for registered users with the upload_files capability but I am not
 able to have it work for non registered users and I think this is because
 of the lack of capability for them.

 The problem is that I don't see a way to add the capability for non
 registered users right now.

 Maybe an improvement could be to add a default role "visitor" that would
 be assigned to users that are not logged in. And then we could assign some
 capabilities like upload_files to them.

 Another option would be to allow some kind of hook on the media uploader
 to allow to pass some custom capability during initialization.

 Does it make sense?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29010>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list