File Attachments DJ-Classifieds App
This app for DJ-Classifieds extension allows users to add attachments to any advert. You can define file formats, allow users to write their own captions or set predefined captions to choose when adding the attachments.
Configuration
First, install the app like any regular plugin.
Then open the plugin. It's under System -> Manage -> Plugins, and the plugin is called: DJ-Classifieds - Files Attachments.
You can also find it by filtering the Type for DJ classifieds when in plugins:
![](/templates/yootheme/cache/1c/fileattach1-1c60e0cb.png)
Once you open the plugin, you can see the possible configuration:
![](/templates/yootheme/cache/b2/fileattach2-b26a8f50.png)
the possible options are:
- Uploader in adverts - Enable/Disable uploader in adverts
- Uploader in profile - Enable/Disable uploader in profile
- Uploader in registration - Enable/Disable uploader in registration
- Profile admin email - Enable/Disable profile admin email
- Attachment formats - here you can set all the formats that you allow your users to upload
- Predefined captions - Leave empty to allow any caption or put each caption into separate line to make it available as a select list
- Max. Attachments limit (backend) - Enter the maximum number of files which users should be allowed to upload. Set negative (e.g. -1) to allow uploading an unlimited number of files in the back-end
- Max. Attachments limit (frontend) - Enter the maximum number of files which front-end users should be allowed to upload. Enter 0 to deny uploading/managing files
- Max. attachment size [KB] - Maximum size of single attachment, eg. 2048 = 2MB. 0 = unlimited/limited by server
- Multiple Attachment Upload - Enable/Disable multiple attachments upload
When all is set, remember to enable the plugin and click Save.
You're now all set.
Frontend
When the plugin is enabled, users can start adding file attachments to adverts.
In the submission form when adding new advert, there's a new field available: Attachments.
If no predefined captions were set the user can enter own captions or leave the file name.
Depending on the settings in the plugin, the amount of the attachment will be limited or not.
![](/templates/yootheme/cache/56/fileattach4-564a43ba.png)
![](/templates/yootheme/cache/bd/fileattach5-bd7c5c9d.png)
As you can see, there is some more info about the attachments:
- filename / caption
- file format
- size of the file
- number of downloads