1. Home
  2. Docs
  3. Filr
  4. Upload files

Upload files

Upload protected files with Filr is easy. You don’t need any FTP account. You can do everything directly from your WordPress Admin area.

Go to Filr -> New File. You should see a screen like this:

Upload files 1

Every file needs a title. It’s used to reference them inside the shortcode later. It’s not the file name.

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 successfull or not.

Upload files 2

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

Upload files 3

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

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.

Upload files 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.

Upload files 5

Advanced Options

Directly below you can find the advanced options.

Upload files 6

Expire by date:

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

Expire by downloads:

Same as expiration by date but with number of downloads. Everytime 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 restricting 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