{"id":1256551,"date":"2019-06-26T11:50:00","date_gmt":"2019-06-26T11:50:00","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1256551"},"modified":"2020-11-16T10:17:09","modified_gmt":"2020-11-16T10:17:09","slug":"using-the-native-wordpress-media-manager-in-front-end-forms","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/fr\/course-lesson\/using-the-native-wordpress-media-manager-in-front-end-forms\/","title":{"rendered":"Using the Native Media Manager in Front-End Forms"},"content":{"rendered":"\n<p>This allows logged-in users to select multiple items into repeating fields at once. They can also edit images as they are adding them.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"cb7810a3cfed024522991f31f44308ae\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2019\/06\/toolset-forms-use-the-wordpress-media-manager.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2019\/06\/toolset-forms-use-the-wordpress-media-manager-500x244.png\" alt=\"Option to Use the WordPress Media Manager With the Form\" class=\"wp-image-1256559\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Option to use the WordPress media manager with the form<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Only logged-in users can use the native WordPress media manager. Visitors can upload their media files using basic HTML file inputs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Default User Permissions for Using and Editing Existing Files<\/h2>\n\n\n\n<p>Besides uploading new media, logged-in users can also access and edit existing files. This includes adding and editing metadata, such as title, description, and more. Having access to files on your site is a sensitive feature. Users in low-level roles should not be able to access all of the site\u2019s media fields. Thus, front-end forms come with some default permissions for accessing the WordPress media library. If needed, website administrators can use&nbsp;<a href=\"https:\/\/toolset.com\/home\/types-access\/\">Toolset Access<\/a>&nbsp;to modify these restrictions in two ways:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Giving logged-in users permission to use any existing file on the site. This is done by editing the permissions defined for post, user, and relationship forms.<\/li><li>Giving users in specific roles permissions not granted by default. This includes the ability to edit images and their metadata.<\/li><\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>The following table shows the default permissions for using the site\u2019s existing media files:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"table\"><tbody><tr><td><\/td><td><strong>Upload Files<\/strong><\/td><td><strong>Query all Files<\/strong><\/td><td><strong>Query own Files<\/strong><\/td><td><strong>Edit all Metadata<\/strong><\/td><td><strong>Edit own Metadata<\/strong><\/td><td><strong>Edit all Images<\/strong><\/td><td><strong>Edit own Images<\/strong><\/td><\/tr><tr><td><strong>Admin<\/strong><\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><\/tr><tr><td><strong>Editor<\/strong><\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><\/tr><tr><td><strong>Author<\/strong><\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>No<\/td><td>Yes<\/td><td>No<\/td><td>Yes<\/td><\/tr><tr><td><strong>Contributor<\/strong><\/td><td>Yes<\/td><td>No<\/td><td>Yes<\/td><td>No<\/td><td>Yes<\/td><td>No<\/td><td>No<\/td><\/tr><tr><td><strong>Subscriber<\/strong><\/td><td>Yes<\/td><td>No<\/td><td>Yes<\/td><td>No<\/td><td>Yes<\/td><td>No<\/td><td>No<\/td><\/tr><tr><td><strong>Visitor<\/strong><\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>No<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"author":4341,"featured_media":1666895,"template":"","related-lesson":[8429],"class_list":["post-1256551","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-post-forms"],"_links":{"self":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1256551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":8,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1256551\/revisions"}],"predecessor-version":[{"id":1767869,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1256551\/revisions\/1767869"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media\/1666895"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media?parent=1256551"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/related-lesson?post=1256551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}