Attachments

Pro Moderators and end users can add attachments when creating or updating a question or answer. The attachments become linked attachments, which are indirect links that can be used to download the files, if and when they’re needed. Attached files are stored in

PATH_TO_JOOMLA/media/com_faqbookpro/attachments/

For security reasons, files names are encoded before storing and can not be accessed directly. Attached files respect permission levels of parent question or answer. For example, when attaching a file to a private question, only the owner and users that have permission to see private questions will be able to see and download the file.

Attachments configuration

Before enabling permission levels, you must configure the attachments parameters.

  1. Go to Dashboard and click on "Configuration".

  2. Under the Attachments tab, configure the following parameters:

    Max files: Maximum number of files that can be uploaded via the form (1 - 20). There is a hard limit of 20 files that should be enough for most use cases. This limit can not and should not be bypassed.

    Max size (MiB): Maximum file size, in MiB. Must not exceed the PHP maximum upload file size in your server configuration.

    Accepted types: Accepted mime types or file extensions.

  3. Click on "Save & Close".

Configuring permissions

In order to configure the permission levels for attachments:

  1. Go to Dashboard and click on "Configuration".

  2. Under the Permissions tab, enable the Create attachments action for the user group that will be able to attach files to questions and answers. Also, enable the See attachments action for the user group that will be able to see and download attachments created by other users. Note that a user can always see and download their own attachments.

  3. Click on "Save & Close".

  Info

Attachments can also be created via the back-end question and answer forms.

Search