How to Upload Files to WordPress for Download

While you can use WordPress media library to handle files in some extent, it doesn’t really provide an easy way to list those files for download on your site. Using Shared Files you can easily create such list of downloadable files.

All you have to do is to follow these steps:

  1. Download the free version of Shared Files and install it on your WordPress site
  2. Add some files from the file management
  3. Insert the shortcode [shared_files] to any page or post

Download the free version of Shared Files

You can download the plugin from here or install it directly to your site from Plugins page in the WordPress admin area.

Add some files from the file management

Add the files you would like to provide for download from the file management. You’ll find the file management in the WordPress admin area under Shared Files, after you have installed the plugin.

Insert the shortcode to any page or post

Insert the shortcode [shared_files] to the content editor of any page or post and the list of downloadable files will appear.

Shared Files PRO

The Pro version has some additional features, and is actively developed based on feedback from users.

Click here to start a free 7-day trial of Shared Files PRO.

Some of the features in the Pro version are:

  • Upload files using FTP and activate them with a single click
  • Sort files into categories
  • Fast search targeting file names and descriptions
  • File load counter
  • Bandwidth usage estimate
  • Alternatively define an external URL for file and track those loads
  • Optionally receive an email notify when a file is downloaded
  • Password protected files
  • Set expiration date to a file
  • Limit number of downloads per file
  • Front-end file uploader
  • Multi-file uploader

How to increase maximum media library file upload size in WordPress — 3 different ways

There are at least 3 different ways to increase the maximum file upload size in WordPress.

1. Update .htaccess

.htaccess is a file located in the root directory of your WordPress installation (in case your hosting provider uses Apache as a web server). Open the file in a text editor and insert or edit the values as needed.

The max_execution_time and max_input_time values are in seconds and might need to be increased further depending on the maximum size of the file(s).

An example how to set the maximum file size (and maximum form post size) to 512 MB and the time limit to 10 minutes:

php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value max_execution_time 600
php_value max_input_time 600

2. Update wp-config.php

wp-config.php is a file located in the root directory of your WordPress installation. Open the file in a text editor and insert or edit the values as needed.

The max execution time and max input time values are in seconds and might need to be increased further depending on the maximum size of the file(s).

An example how to set the maximum file size (and maximum form post size) to 512 MB and the time limit to 10 minutes:

@ini_set(‘upload_max_filesize’ , ‘512M’);
@ini_set(‘post_max_size’, ‘512M’);
@ini_set(‘max_execution_time’, ‘600’);
@ini_set(‘max_input_time’, ‘600’);

3. Contact hosting provider

Contact the customer support of your hosting provider and ask them to increase these limits for you.

How to create a file upload form in WordPress

While the free version of Shared Files offers an easy way to list downloadable files on your site, you may want to allow visitors or logged in users to upload files themself.

It’s easy to create a file upload form using Shared Files PRO. Just insert the shortcode [shared_files file_upload=1] to any page and the file upload form in it’s basic form appears:

By using the shortcode [shared_files file_upload=1 category_checkboxes=1 tag_checkboxes=1] you can add checkboxes for categories and tags:

List of files under the file upload form

When you add the file upload form using the shortcode [shared_files file_upload=1], there are other files listed under the form.

By using the parameter “only_uploaded_files” the shortcode [shared_files only_uploaded_files=1 file_upload=1] lists only such files that are added using that form.

If you would like to have no files listed at all and only the file upload form, you can use this shortcode: [shared_files file_upload=1 hide_file_list=1]. Then the files will be added to the file management for the administrator to handle.

Click here to start a free 7-day trial of Shared Files PRO.

Shared Files PRO

The Pro version has some additional features, and is actively developed based on feedback from users.

Some of the features in the Pro version are:

  • Upload files using FTP and activate them with a single click
  • Sort files into categories
  • Fast search targeting file names and descriptions
  • File load counter
  • Bandwidth usage estimate
  • Alternatively define an external URL for file and track those loads
  • Optionally receive an email notify when a file is downloaded
  • Password protected files
  • Set expiration date to a file
  • Limit number of downloads per file
  • Front-end file uploader
  • Multi-file uploader
Shared Files PRO Only $3.99 / month