Attachments
Customers can add one file to a new ticket and one file to each reply. The file shows as a download link on the ticket page, and it is added to the notification emails.
Settings
Open Settings and the Attachment Settings tab:
| Setting | Default | What it does |
|---|---|---|
| Enable Attachment | Yes | Shows the Attachment field in the site forms |
| File format | zip,pdf,jpg,png,jpeg | The allowed file extensions, separated by commas |
| File Size | 2 | The largest allowed file, in MB |
The allowed types show under the field as "Allowed file formats: ...". The server limit for uploads (upload_max_filesize in PHP) must be at least as large as File Size.
Enable Attachment only hides the field on the site. The administrator ticket screen always shows it.
When a file is refused
| Message | Reason |
|---|---|
| Wrong file format, please upload ... file | The extension is not in File format |
| File upload failed: File size is too large ... | The file is larger than File Size |
| File upload failed | The server could not save the file |
The ticket or reply is not saved. The customer chooses another file and sends the form again.
Where files are stored
Files are saved in the folder support/attachments/<user ID>/ in the root of your Joomla site. Files from the site are renamed to a number and their extension, for example 1764150000.pdf.
This folder is inside your public website. In 6.0.5 anyone who knows or guesses the address of a file can open it without logging in. Until this is fixed:
- Keep File format to harmless types such as pdf, jpg, png and zip. Never add php, phtml, html, htm, svg, js or exe.
- Ask customers not to upload passwords, contracts or other confidential files.
- If your server is Apache, you can block direct access with a
.htaccessfile insupport/attachmentsthat containsRequire all denied. Downloads through the ticket pages keep working, because JoomTickets reads the files on the server.
Download a file
Click the file name on the ticket page, on the Support Team Ticket page or on the ticket screen in the administrator.
Files in support team replies
In 6.0.5 a file added on the Support Team Ticket page is not saved with the reply. See Support team.