• Resolved Giang Le

    (@gianghl1983)


    Hi,

    I am using a form in which there’s an image field.

    Editor role can upload image easily, Author role can see Add Image Button, see Uploaded Image to the Page but could not upload.

    Author role will get this message after trying upload: “Sorry, you are not allowed to attach files to this post”

    I checked Author Role by AAM (Advanced Access Manager), permission “upload_files” checked, and I checked one more permission = “edit_files”, still not work.

    Do you think it is a bug or something else?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    This is a typical problem about WP role & user permissions. You should check the “Author” role, if it has the rights to edit the said post type (custom post type maybe?), upload files, maybe check unfiltered file upload too.

    After looking at the Google request “wordpress author role Sorry, you are not allowed to attach files to this post”, it looks like you’re not the only one that has this problem.

    You should make some research around it. Maybe starting here https://stackoverflow.com/questions/31885086/error-you-dont-have-permission-to-attach-files-to-this-post-on-wordpress

    The problem is not related to ACF Extended tho, and probably not to ACF either.

    Hope it helps.

    Regards.

    Thread Starter Giang Le

    (@gianghl1983)

    @hwk-fr Thanks! I set all these permission for Role Author

    + unfiltered_upload
    + unfiltered_html
    + edit_pages
    + upload_files

    The result still the same. Now I must clone Editor Role and assign it to user for upload image front-end via ACF Form.

    Thank you anyway!

    Br,

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    If the editor role works, then there’s definitely permissions missing in the author role in order to do what you want it to do. Maybe some permission around edit_page, edit_post, edit_posts etc… You’ll need to dig a bit deeper if you want to stick to author role.

    Regards.

    Thread Starter Giang Le

    (@gianghl1983)

    @hwk-fr Thank you! I see that there must be some missing capabilities here from editor role. Try to enable all edit_ capa. without success sadly. Hope that someone reading this will help me out.

    Br,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Author Role could not upload image via Image Field?’ is closed to new replies.