Title: upload button
Last modified: August 22, 2016

---

# upload button

 *  Resolved [ann98](https://wordpress.org/support/users/ann98/)
 * (@ann98)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/)
 * Hi Jeff, I am loving your plugin but am having difficulty with the upload image
   button.
 * First of I’m currently running on my local pc. When logged in as administrator
   I am able to post front end and upload a picture by using the media button (rich
   text editor enabled) – the image previews on screen, uploads and looks great.
   Still logged in as administrator I then submit a new post and try to upload another
   image via the ‘upload image – choose a file’ option, no image is previewing and
   after the post is submitted there is no image. In this instance the image has
   not uploaded to the media files.
 * I then try the same logged in as a user with an Author role. Uploading via the
   media button I return an error ‘you don’t have permission to attach files to 
   this post’, again using the upload image – choose a file gives no preview nor
   does it upload file. The only area I can even return an error message is using
   the media button.
 * I installed the plugin user role editor thinking that maybe somehow the capability
   of the Author role had been changed. I went to change the Author role to include
   uploading media files however Author does already have permission to do that.
 * It appears there are 2 issues, firstly the input form from which I’m submitting
   a post (shortcode [user-submitted-posts]) doesn’t recognise that Author does 
   have the correct permissions and secondly the ‘upload image – choose a file’ 
   doesn’t actually appear to do anything.
 * Other than the upload image button and author ability to upload this plugin is
   doing almost everything I need it too. Any assistance would be great, thanks.
 * [https://wordpress.org/plugins/user-submitted-posts/](https://wordpress.org/plugins/user-submitted-posts/)

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5616857)
 * Thanks for reporting this, I will have to investigate for the next plugin update.
   If you discover any further clues please feel free to post them on this thread.
   Thanks again. Also, I assume this is for the free version of the plugin, correct?
 *  Thread Starter [ann98](https://wordpress.org/support/users/ann98/)
 * (@ann98)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5616863)
 * Yes, free version. I’m having another read through of your FAQ’s on this to see
   if I can figure out any more – unfortunately I am lost when it comes to php! (
   re: WP-Mix).
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5616869)
 * Okay awesome, please keep me in the loop with any further infos 🙂
 *  Thread Starter [ann98](https://wordpress.org/support/users/ann98/)
 * (@ann98)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617029)
 * OK so I’ve run through and disabled all my plugins, still the same issue. Still
   to try with another theme though.
 *  Thread Starter [ann98](https://wordpress.org/support/users/ann98/)
 * (@ann98)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617035)
 * Have tried with another theme, still no luck.
 * The author role if given access to the admin module is able to upload images 
   just as the administrator is.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617040)
 * Okay, so if I understand correctly image upload is not working for a customized“
   Author” role that you have set up? If so, it could be in the code used to implement..?
 *  Thread Starter [ann98](https://wordpress.org/support/users/ann98/)
 * (@ann98)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617061)
 * Nothing customised about the author role, its the standard WP role, just as the
   administrator role is.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617062)
 * Okay thanks. I will investigate authors ability to upload files next opportunity.
   I also will look at the Upload button and see if that is working for authors.
   I know for sure that it works normally for admins, but with authors there could
   be a bug. Either way, thank you for the feedback.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617224)
 * Just to follow-up with this, it seems that WordPress allows only Admins to upload
   files via the Upload Media button when submitting from the front-end. So anyone
   can upload files using the File(s) field, but only Admins can do it with the 
   drag-drop “Upload Media” functionality (like in the Media Library).
 *  [cogdog](https://wordpress.org/support/users/cogdog/)
 * (@cogdog)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617247)
 * I have a site with a front end form where non Admins can upload, from this note
   [http://wordpress.stackexchange.com/a/116489/14945](http://wordpress.stackexchange.com/a/116489/14945),
   I set things up with:
 *     ```
       add_action('wp_enqueue_scripts', 'add_truwriter_scripts');
   
       function add_truwriter_scripts() {	 
   
        	if ( is_page('write') ) { // use on just our special writing page
   
       		 // add media scripts if we are on our wriing page and not an admin
       		 // after http://wordpress.stackexchange.com/a/116489/14945
   
       		if (! is_admin() ) wp_enqueue_media();
   
        	}
       }
       ```
   
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617248)
 * Hi cogdog, thanks for the heads up on that technique, will implement it or similar
   for the next update. Cheers.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617249)
 * Hi cogdog,
 * I tried the following but it did not work:
 *     ```
       function add_media_scripts() {
       	wp_enqueue_media();
       }
       add_action('wp_enqueue_scripts', 'add_media_scripts');
       ```
   
 * I tried with visitor (not logged in) and Subscriber (logged in), but no Add Media
   button is displayed. Is there something else that you did to make it work? Thanks.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617250)
 * Just to follow up with this: the latest version of USP Pro now supports “Add 
   Media” for Subscribers and Contributors. Similar support should be added to the
   free version in a future update. Thanks to everyone for their feedback.

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

The topic ‘upload button’ is closed to new replies.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/upload-button-2/#post-5617250)
 * Status: resolved