Documentation
Attachments
Moderators and end users can add attachments when creating or updating a question or answer. Pro
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.
-
Go to the component Dashboard and click on Configuration.
-
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.
-
Click on Save & Close.
Configuring permissions
In order to configure the permission levels for attachments:
-
Go to Dashboard and click on Configuration.
-
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.
-
Click on Save & Close.
Info
Attachments can also be created via the back-end question and answer forms.