Creating Downloads with the Files facility -Oct 2024

Introduction

This article is an example of using the files buttonoption to upload one or more files and then directly create Downloads from the uploaded files.

The facility allows uploading multiple files so it is often useful when adding several Downloads.

It is a two stage process (i) upload the files and then (ii) create the Downloads. 
Note that the target Categories for the Downloads must already exist.

The uploaded files are temporaily stored in root directory jdownloads.
To find the Files Facility go to V4 button jDownloads and select V4 button jDownloads as usual. From the pulldown list select V4 button files.
This article is an example of using the Option files button to upload one or more files and then directly create Downloads from the uploaded files.

The facility allows uploading multiple files so it is often useful when adding several Downloads.

It is a two stage process.  First upload the files and then create the Downloads.  Note that the target Categories for the Downloads must already exist.

The uploaded files are temporaily stored in root directory jdownloads.

Uploading the files

Clicking on the button files  button gives the initial step as shown opposite.

The default main jDownloads directory is jDownloads in the Joomla! root directory. This directory is usually empty.

This allows uploading any files that you wish to make into a Download so click on the  button upload 2  button.


files select20
Please note that the maximum size  and type of file that may be uploaded are constrained by the Options - Uploads tab 'Maximum File Size (MB)', 'Allowed Image Extensions' and 'Other allowed File Extensions'.
For more details on these setup options see the article Uploads Options (opens in a new tab/window).

Adding files for uploading



As indicated files may either be dragged onto the panel or you can use the Add button at the bottom left.

Clicking on the button add files button will open your operating system File Manager of your device, such as a Windows PC, to allow selection. Alternatively you may just drag files from the operating system Files Manager.
files select01A


As each file is included in the panel then its name and approximate size of the file are shown.

The status is shown at  0% as they have not yet been uploaded.

Note also that after uploading the first file that the Start Upload button is now active.
If you have added a file by mistake then click on the V4 button remove filebutton. This removes the selected file.
files select02
Note that you may see an HTTP error as shown opposite. This occurs if your site is using http://.  With jDownloads 4 it must be https://files select02

Start uploading

Click on the button start upoad2  to initiate the Uploading.

Whillst the files are uploading you will see a progress bar and the amout uploaded.

As the upload is quite quick then typically a total size of say more than 4MByte is needed to actually see the progress bar and the percentage uploaded.

If it is a small total size it might be too quick to notice!
files select03

When the uploading has completed, it will indicate 100% and show the status as successfull green tick.

If you click on the button refresh  button you can upload more files.

files select04
The file is also checked for size and a valid extension.

For example if it has an invalid extension, that is one not specified in the jDownloads 'V4 button optionsV4 button Ulpload tab - 'Other allowed File Extensions' or ' Allowed Image Extensions ', then you will get an error message such as shown opposite.
invalid extension

Using FTP to Upload

To avoid any upload limit then an alternative is to use FTP to upload the file to the jdownloads folder in the Joomla root.  This folder has the top level Category folders and folders like _preview_flies, _tempzipfiles and Uncategorised.

In the example opposite FTP was used to upload a 20MB file.  The actual limit set in jDownloads and php.ini was 12MB.
invalid extension

If we now  select the button files button we will be able to create the new download as describedin the Creating Downloads section below.

invalid extension

Creating the Downloads

The next step is to create the Downloads.

So clicking on the Files button button downloads which will show a list of files awaiting creation into a Download.

If one  of the files is not required, maybe it was uploaded  by mistake, click on the small box next to the relevant file name and use the button delete  button, which is located on the view header, to remove the file from the list. 

You will be asked to confirm so click on OK to procede.

In this example the 1GB.zip file was deleted.
files select05

The view will now be like that opposite.

Next click on one of the button create buttons.
files select06
This will open the usual backend 'Add Download' view but with a notice at the top as shown opposite

notice

On the V4 files data tabtab you will see that the relevant file is already selected in the   'Or select file from root area' setting.

files select09

Ensure you at least give the Download a Title and that you also select the appropriate category.

When you have set all the relevant information then V4 button save close as usual.

This will take you to the normal Downloads view.

.
files select10

To continue with the other uploaded files then click on the button filesbutton again.

files select11
Repeat the Create Downloads sequence for each of the remaining uploaded files.

ColinM March 2021 modified February 2022, July 2023, May 2024, Oct 2024

Print Email

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.