Attachments
A message can carry one file. The receivers download it from the message.
Turn it on
The options are on the Attachments tab of the JoomPMS options.
| Option | What it does | Default |
|---|---|---|
| Enable Attach File | Shows the file field on the message form. | Yes |
| Access Method | Which groups may attach files: All, Exclude the selected groups or Include only them. | All |
| Select Access Group | The groups for Exclude or Include. | Registered |
| Maximum Size(mb) | The largest file in megabytes. The form shows the smaller of this value and the upload limit of your server. | 10 |
| Legal Extensions (File Types) | The file extensions users may send, separated by commas. The check is case-sensitive, so the default list has each type in lower and upper case. | bmp, csv, doc, docx, gif, ico, jpg, jpeg, odg, odp, ods, odt, pdf, png, ppt, pptx, swf, txt, xcf, xls, xlsx, zip, ics |
Keep the list short and only add types your users need. We recommend removing swf, which no current browser uses.
The upload limit of your server is set by PHP (upload_max_filesize and post_max_size). Ask your host to raise it if you need larger files.
Send a file
- In the message form, click Select a file and choose the file. The allowed extensions are shown under the field.
- Fill in the rest of the message and click Send.
When a message goes to several people, they all get the same file.
In 6.1.7, a file of a type that is not in the list, or a file over the size limit, stops the send with an error page instead of a clear message. Check the type and size before you send.
Download a file
The message shows Attachment: with the file name. Click the name to download the file with its original name. In the message list, messages with a file have a paperclip badge.
Where the files are stored
Files are saved on the server in media/com_joompms/attachments/, in one folder per sender. Files sent with versions before the attachments folder was introduced stay in media/com_joompms/<user id>/ and can still be downloaded.
Do not use JoomPMS attachments for confidential documents. The files are plain files on your web server.
When files are deleted
- Empty trash deletes the file when no other copy of the message uses it any more.
- Auto purge deletes old messages but leaves their files on the server.
- Uninstalling JoomPMS leaves the files on the server.