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”.
Table of Contents
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.
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.
After hitting the “Publish” button your files are available and a download link was created:
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.
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.
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.
Directly below you can find the advanced options.
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.
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.
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.