Which file types can be uploaded from front-end

The basic answer is any type! But you need to include the type in the list of permitted types and ensure that there is a suitable 'symbol' file. To increase flexibility jDownloads sets the permitted types on a per user basis through the User Group Settings.

That is the allowed upload types from the front end are not defined in the Configuration!


Thus some uploaders may be permitted to upload just say pdf, zip, jpg and png file types but another user group might be allowed doc, docx, 7z, rar.

A typical initial setup for a new group could be as shown opposite.


The picture below shows the fields that need changing.

Adding to the Allowed file types is the obvious need, this is just a simple comma separated list. Also it is sometimes convenient to allow automatic publication.

 A more interesting field in User Group Settings is the Ranking.  More details on this are given in the article Which User-Group is Used?

 In summary Joomla adds considerable flexibility to the access control facilities by allowing a user to belong to multiple user-groups.  So in the situation where a user belongs to multiple user-groups which user-group will jDownloads use?  This is a single to multiple problem. Of itself there is no unambiguous solution as to which user-group should be chosen from the set of those that the current user belongs. 

jDownloads solves this problem through the Ranking value.  Of all the groups a user belongs too then jDownloads uses the one with the highest ranking.  Also note that Joomla! uses implied group membership by including the parents of the user group to which a user has been joined explicitly.  The only users that belong to just one group are those in the Public Group!  To avoid having to revisit the User Group Settings every time a new user group is created the default ranking is automatically set to zero.  And any user group with a zero ranking is ignored by jDownloads.  This means it is important to use a non zero value.


When a member of the user group is creating/editing a Download then the allowed extension will be listed.   Many of the standard file types have icons already defined, there are around fifty default icons.






















The front end view in say List My Downloads is somthing like that shown opposite.














You can use your own icons by uploading them with FTP or the web site control panel into directory /images/jdownloads/fileimages. Standard size: 32 px. For example the file princess sparkle.png was copied into /images/jdownloads/fileimages and then used as a symbol in a Download. The result is shown opposite. Symbol04





Colin Mercer December 2014

  • Tuesday, 23 December 2014