Create files in the frontend

Filr also allows uploading files directly from the frontend. This can be useful if you want to make uploading files accessible for users that don’t have admin access. It also comes with a bunch of options to modify the behavior.

Shortcode

The frontend uploader is a new shortcode called [filr-uploader]. You can also use a couple of parameters to further customize the usage of the frontend uploader

Create files in the frontend 1

Library parameter

Using the library parameter to specify a specific library users can upload their files to:

[filr-uploader library="my-library"]

Status parameter

Using the status parameter to specify a specific status that will be added to the uploaded file. This can be useful if you need some kind of manual review before publishing files to a library:

[filr-uploader status="draft"]

User role parameter

Using the user-role parameter to specify a user role that should be able to upload files. You can restrict that to any user role you like and block the upload for unauthorized users:

[filr-uploader user-role="subscriber"]

User email parameter

Using the user-email parameter to specify a specific user by e-mail that should be able to upload files. You can restrict that to any user e-mail you like and block the upload for unauthorized users. Also, you can add multiple e-mails by separating them with a comma.

[filr-uploader user-email="john@doe.de"]

Styles and Settings

Go to Filr->Settings->Frontend Uploader to customize the look and feel of the uploader and configure some additional settings.

Create files in the frontend 2

You can modify the headline, limiter, and button labels, add a custom icon (Unicode) for the uploader and modify the branding colors to match your design.

You can also activate a reload after a successful file upload. This is useful when using the uploader on the same page as the library shortcode to make the file immediately visible to the user.