Title: Users cannot upload attachments.
Last modified: June 4, 2017

---

# Users cannot upload attachments.

 *  [mavina](https://wordpress.org/support/users/mavina/)
 * (@mavina)
 * [9 years ago](https://wordpress.org/support/topic/users-cannot-upload-attachments/)
 * Hi,
 * I am using this plugin. However, only I as an admin can upload attachments. Registered
   buddypress members who are contributors or subscribers cannot add attachments.
   It gives an error and logs out the user.
 * “An error occurred in the upload. Please try again later.”
 * What could be wrong? Plugin works just fine but only if you are admin. Not if
   you are other member of the site.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [mavina](https://wordpress.org/support/users/mavina/)
 * (@mavina)
 * [9 years ago](https://wordpress.org/support/topic/users-cannot-upload-attachments/#post-9195048)
 * I checked and see that those users who registered using social login by facebook
   are unable to upload attachments. It gives error and kicks them out. But those
   who registered using the simple manual signup form, they are able to add attachments.
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [9 years ago](https://wordpress.org/support/topic/users-cannot-upload-attachments/#post-9195484)
 * Hi @mavina-
 * It sounds like you’ve pretty well solved the problem. The permissions for uploading
   attachments are handled here: [https://github.com/boonebgorges/buddypress-docs/blob/1.9.x/includes/attachments.php#L635](https://github.com/boonebgorges/buddypress-docs/blob/1.9.x/includes/attachments.php#L635)
 * As you can see, what we’re checking for is that the user is a real, logged-in
   WP user, is adding attachments to a valid doc and has a valid nonce.
 * Are the users that are logged in via the social login by Facebook logged into
   real WordPress accounts on your site? It sounds like that plugin might be playing
   fast and loose with what it means to be logged in. (Nothing in BP Docs causes
   a user to be logged out, for instance, so that behavior suggests to me that something
   else is going on.)
 * Best,
 * -David
 *  Thread Starter [mavina](https://wordpress.org/support/users/mavina/)
 * (@mavina)
 * [9 years ago](https://wordpress.org/support/topic/users-cannot-upload-attachments/#post-9196061)
 * Yes, the Facebook login is very fast and quick but users are able to do everything
   else on the site and i also see their details such as username, email id, etc
   on their profile with necessary roles. Only the doc upload feature has this issue.
   I am not sure if they are logged into real wordpress accounts but i am assuming
   they are because everything else work, or could it be that social login has a
   different table or something? I am using Kleo theme and it has its own FB Login
   feature. What can we do to fix this?
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [9 years ago](https://wordpress.org/support/topic/users-cannot-upload-attachments/#post-9196108)
 * I don’t think Kleo is to blame, since you’ve identified that only Facebook-login
   users have this problem. To troubleshoot, log in as a normal user, and inspect
   your browser’s cookies. You should see several cookies that start with `wordpress_`.
   Make a note of those cookies. Then, log out and log in as a user using the Facebook
   login, and check your cookies. If you don’t see the same number and variety of
   cookies, you’re not fully logged in.
 * Alternatively, you might try Kleo’s FB login feature and see if users created
   that way have the same problem.
 * -David
 *  Thread Starter [mavina](https://wordpress.org/support/users/mavina/)
 * (@mavina)
 * [9 years ago](https://wordpress.org/support/topic/users-cannot-upload-attachments/#post-9196285)
 * Thanks for the information, i have done that, i see that when i login using Facebook,
   then an extra cookie is created named fbsr_243579332789982. So the number of 
   cookies and varieties are not same. Also, the facebook social login feature is
   a part of kleo theme so not sure what to do now. Yes, users created using Kleo’s
   FB login are facing the same problem.
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [9 years ago](https://wordpress.org/support/topic/users-cannot-upload-attachments/#post-9205802)
 * Hm. Well, I’m stumped. The BP Docs attachments upload check is very permissive,
   so maybe the WP media uploader is the source of the restriction. When logged 
   in as a FB user, can you upload media via the media library in wp-admin?
 * -David

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Users cannot upload attachments.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-docs.svg)
 * [BuddyPress Docs](https://wordpress.org/plugins/buddypress-docs/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-docs/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-docs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-docs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-docs/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [David Cavins](https://wordpress.org/support/users/dcavins/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/users-cannot-upload-attachments/#post-9205802)
 * Status: not resolved