File Field Guide
The File field provides an input field for uploading one or more files.
Field Settings
Multiple Attachments: Whether multiple upload files are allowed.
Allow Extensions: Comma separated list of file extensions that are allowed to be uploaded.
Maximum File Size: Maximum file size in kB that can be uploaded.
Save Folder: The directory relative to the Joomla root to save files.
Accept: The accepted file type list. It defines the file types (comma separated list) the file input should accept.
Dynamic Folder Names
In the save folder path, you can add placeholders to upload files to user's own custom folder by using dynamic folder names. For example:
- {USER id}
- {USER username}
- {YEAR}
- {MONTH}
Displaying File at Frontend
1. As File: In the view options, select File as Layout.
- Directory: This is the base directory of files. You can leave this empty.
- Button Text (Required): Text to be displayed for the link. For example: Download File or View File
- Button Class: CSS Class for styling the link.
- Target Window: Choose whether to open file in new window or same window.
- Force Download: Whether to force download file.
2. As Image: You can use this option if the file type uploaded is image. In the view options, select Image as Layout.
- Directory: This is the base directory of files. You can leave this empty.
- Image Class: CSS Class for styling the image.