Create files in the admin

Creating files in Filr can be done in the same way as you create new posts in WordPress. Head over to “Filr” in your admin area and click on “Add New”.

Title

Same as posts, give your file a title. That’s the one used to display the file within a library in the frontend. They follow the same rules as all titles in WordPress – the name has to be unique and you should avoid any special characters.

Create files in the admin 1

File uploader

After you added a name, use the simple Drag and Drop uploader to upload one or multiple files. You see the upload progress and get immediate feedback if the upload was successful or not.

Create files in the admin 2

After hitting the “Publish” button your files are available and a download link was created:

Create files in the admin 3

Tip: If you don’t provide a title for your file, the post id will be used as shown on the screen above (176 is the post id).

That’s all you need to do to create a new file in FILR, but there are a couple of other options that may be useful for you. So let’s cover the other options in a bit more detail now.

Libraries

You can assign libraries to your uploads. This is useful if you want to show them in a table with the included shortcode [filr library=123″]. How you create, manage, and output the lists and the shortcode will be part of the next tutorial.

Create files in the admin 4

File Management

Below the “library” meta box you will find the file-management settings. You can convert a file to a folder, use an external file instead of the uploaded one, assign a file to a folder and add a version number for the file. Make sure to save the file when converting it to a folder because the available options will change based on the selection. More on that here.

Create files in the admin 5

Advanced Options

Directly below you can find the advanced options.

Create files in the admin 6

Expire by date:

Set an expiration date for your uploaded files. The download link won’t be accessible after the date and the files are not available in any list shortcodes.

Expire by downloads:

Same as expiration by date but with the number of downloads. Every time a user downloads the file with the download link or inside of the shortcode the number will be reduced. If the number of remaining downloads reaches 0 the file expired (link and within the shortcode).

Password for ZIP

You can set a password for protecting ZIP files. It protects the real file created on upload, but it requires a PHP extension called libzip.

Encrypt filename:

You can encrypt your file name with this option. This is especially usefull if you upload multiple files at once. So the dynamically created zip file is encrypted. But it also works fine for single files.

User Restriction

The last meta box helps you restrict files to specific users or entire user roles. Both options can be used together. Hint: administrators are excluded from the restriction so make sure to use an appropriate account for testing it.

Upload files 7