• Resolved martijnrammeloo

    (@martijnrammeloo)


    Hi, I’ve been a long time – happy – user of WPDM (free). However, I want to change to ‘upload-workflow’: at this moment, a small group of users has admin rights, in order to upload files in he backend of the site. Obviously this is a security risk, but it also feels unnecessarily complicated. A solution via the frontend seems to be the way to go. There are two requirements:

    • It must be possible to set ‘access control’ to a specific role. Manually or – preferably – automatically.
    • Uploads must be published immediatly, so no admin interference/involvement

    I have done some research, and I think there are three solutions:

    • Dropzone. However, it seems that this plugin is designed to send files to the site admin. Also in the docs I cannot find a way to set access control by the user. Are my observations correct? If so, this is not a useful tool for my use-case.
    • REST API. I am not really sure how it works, but I guess the user has to upload a file to the proper folder (I can make that work) and then the REST API ‘connects’ that file to the WPDM database. I have some experience with the WP REST API, so I am confident that I can make this work. However, in the API documentation I can see that you can GET the access control settings, but not how you can POST/PUT these settings. Can you confirm wether it is possible to change the access control settings via de API?
    • Frontend uploader. This seems perfect right from the start :-). However, on the demo site, there are fields I don’t need, like company info and princing, but also most of the package settings. Is it possible to ‘trim’ them, without resorting to hiding them via CSS? Also, is it possible to set a default access control level? Finally, is there some kind of ‘WP-hook’ when you upload a file that I can use to execute some additional functions?

    Obviously, I understand that I will need to upgrade to pro, and I willing to do so.

    Kind regards, Martijn

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Tahasin

    (@tahasin)

    Hello,

    The company information is pulled from another custom field, while the pricing comes from the Premium package (it will only appear if you choose to sell a digital product; otherwise, it will remain hidden).

    Yes, frontend upload is the best option for you. You can manage everything from the dashboard, including controlling who can view the frontend files and setting immediate publishing options as needed.
    At front-end probably, you may use this parameter to hide sections/meta boxes you don’t need. You can hide settings, images, categories, and tags sections.
    [wpdm_frontend logo=”logo-url” hide=”settings,images,cats,tags”]
    Read more…
    Action Reference

    Let me know, if you have further queries.

    Regards

    • This reply was modified 3 months ago by Tahasin.
    • This reply was modified 3 months ago by Tahasin.
    • This reply was modified 3 months ago by Tahasin.
    Thread Starter martijnrammeloo

    (@martijnrammeloo)

    OK, thank you! This gives me the confidence to upgrade!

    Plugin Support Tahasin

    (@tahasin)

    Welcome !!

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

You must be logged in to reply to this topic.