Files
Upload directories, allowed extensions and image handling.
:::info Source
This page is generated from admin/config.xml and the official en-GB.com_flexicontent.ini / fr-FR.com_flexicontent.ini language files of FLEXIcontent 5.x.
:::
Files Configuration
Files Configuration
Basic
| Option | Description | Values | Default |
|---|---|---|---|
Display File Language asdisplay_file_lang_as | Select appearance/behavior of the file language | — | 0 |
Folders
| Option | Description | Values | Default |
|---|---|---|---|
Secure files pathfile_path | The directory to where the files should be uploaded. Change this default path to be sure to have a minimum security level. | — | components/com_flexicontent/uploads |
Media files pathmedia_path | The directory where the media files should be uploaded to. This directory path will be visible (in the source code) as it will be use to play the media files. | — | components/com_flexicontent/medias |
Search Index
| Option | Description | Values | Default |
|---|---|---|---|
Index PDF filesindex_pdf_files | Add PDF files contents to the search index (currently only text is added) | — | 0 |
Path to PDF parserpdfparser_path | This is the path to the needed library for parsing the PDF files, see https://github.com/smalot/pdfparsers Please download & extract the library from the given URL into the folder and then run composer inside it | — | — |
Index CSV filesindex_csv_files | Add CSV files contents to the search index | — | 0 |
File editor
Choose which fields appear when editing a file. Hidden fields keep their saved values. Advanced settings still require the file-properties permission.
| Option | Description | Values | Default |
|---|---|---|---|
Download filenamefile_editor_show_download_filename | — | — | 1 |
Titlefile_editor_show_title | — | — | 1 |
Descriptionfile_editor_show_description | — | — | 1 |
Replacement uploadfile_editor_show_replace | — | — | 1 |
Keep old upload datefile_editor_show_keep_uploaded_date | — | — | 1 |
Keep old uploaderfile_editor_show_keep_uploaded_by | — | — | 1 |
Languagefile_editor_show_language | — | — | 1 |
Accessfile_editor_show_access | — | — | 1 |
Download stampingfile_editor_show_stamp | — | — | 1 |
Hit countfile_editor_show_hits | — | — | 1 |
File typefile_editor_show_type | — | — | 1 |
File sizefile_editor_show_size | — | — | 1 |
Storage filename / URLfile_editor_show_storage | — | — | 1 |
Server pathfile_editor_show_path | — | — | 0 |
These settings apply to the file manager forms (add / edit files outside of a File field). If a property is not enabled here, the settings of the first File field that enables it are used. Each File field has its own settings (Form field tab, Edit properties), which are used when files are edited via that field
Custom file property 1 (HTML)
| Option | Description | Values | Default |
|---|---|---|---|
Enablefile_custom1_enable | Enable this property: it is shown below the description in the file add/edit forms and displayed on the site when it is not empty | — | 0 |
Labelfile_custom1_label | Label text. You may enter a language string key (it will be translated if it exists) | — | — |
Display labelfile_custom1_label_show | Show the label in the forms and on the site | — | 1 |
Defaultfile_custom1_default | Default value (HTML allowed). Its usage is controlled by the setting below | — | — |
Input height (rows)file_custom1_rows | Height of the text area in the forms, in rows (1 - 30) | — | 2 |
Usage of defaultfile_custom1_default_use | Select when these default property value will be used | — | 0 |
Custom file property 2 (HTML)
| Option | Description | Values | Default |
|---|---|---|---|
Enablefile_custom2_enable | Enable this property: it is shown below the description in the file add/edit forms and displayed on the site when it is not empty | — | 0 |
Labelfile_custom2_label | Label text. You may enter a language string key (it will be translated if it exists) | — | — |
Display labelfile_custom2_label_show | Show the label in the forms and on the site | — | 1 |
Defaultfile_custom2_default | Default value (HTML allowed). Its usage is controlled by the setting below | — | — |
Input height (rows)file_custom2_rows | Height of the text area in the forms, in rows (1 - 30) | — | 2 |
Usage of defaultfile_custom2_default_use | Select when these default property value will be used | — | 0 |
Limits
| Option | Description | Values | Default |
|---|---|---|---|
Maximum Sizeupload_maxsize | The maximum size for an upload (in bytes). Use zero for no limit. Note: your server has a maximum limit. | — | 10000000 |
Allowed extensionsupload_extensions | Extensions (file types) that are allowed to be uploaded (comma separated) | — | bmp,wbmp,csv,doc,docx,webp,gif,ico,jpg,jpeg,odg,odp,ods,odt,pdf,png,ppt,pptx,txt,xcf,xls,xlsx,zip,ics |
Remote files (URLs)
| Option | Description | Values | Default |
|---|---|---|---|
Trusted remote file hostsremote_trusted_hosts | External file server hostnames, one per line. A hostname allows all ports; host:port allows only that port. Listed hosts may use private network addresses. File-size checks and downloads otherwise allow public HTTP(S) hosts on standard ports, with an exception for the verified site host. When this list is set, server-proxied downloads are restricted to listed hosts and the verified site host; other downloads redirect the browser. Automatic sizing when adding or saving a URL requires the separate option below and an explicitly listed host. | — | — |
Automatically read trusted URL file sizesremote_probe_size | When adding or saving a URL file without a supplied size, try to read its size from a server listed in Trusted remote file hosts. Every redirect must also match the list, including redirects to this site's own host. Disabled by default; an empty list makes no automatic HTTP requests. A supplied size takes precedence. Failed or unsupported lookups leave the size at 0. Checks use HEAD with a small Range GET fallback and share a short HTTP timeout budget during the save. Batch imports and existing records are not automatically recalculated. | — | 0 |
Auto-resize uploaded images
Resizing will be done at the user's browser, thus you get faster upload and less server space consumption
| Option | Description | Values | Default |
|---|---|---|---|
Resizeresize_on_upload | Resize uploaded image to save server space and to speedup uploads, since this will be done at the client size (not all 'source' modes support this) | — | 1 |
Image widthupload_max_w | — | — | 4000 |
Image heightupload_max_h | — | — | 3000 |
Processing methodupload_method | Method of creating the image thumbnail. Scale: scales to fit both dimensions, keeping the aspect (height/width) ratio Crop: scales the image and as soon as one dimension fits the other dimension is cropped to the given size | — | 0 |
Download limits
| Option | Description | Values | Default |
|---|---|---|---|
Enable download limitsdl_limit_enable | Master switch for the whole site. Each File / MediaFile field can use these settings, use its own settings, or have no limits. | — | 0 |
Limit how many files each user group can download in a period (minutes, hours or days), across all fields that use these limits. Downloads are counted per logged-in user, and per visitor (cookie + IP) for guests. A group inherits the limit of its parent groups; if several groups match, the highest limit wins. Super users are never limited.
| Option | Description | Values | Default |
|---|---|---|---|
Counting modedl_limit_count_mode | Any file: every download counts, even of the same file. Unique file: a file counts only once during the period, downloading it again is free. | — | 0 |
Perioddl_limit_window | Length of the sliding period, together with the unit below. E.g. 24 hours, 30 days, or 5 minutes (with a limit of 1 file: not more than one download every 5 minutes). Download records older than this period are deleted automatically. | — | 24 |
Period unitdl_limit_window_unit | Minutes, hours or days. | — | 60 |
Limit per user groupdl_limit_groups | Number of files per period. Use -1 for unlimited. Groups not listed (and not inheriting a listed parent group) are not limited. | — | — |
Guest IP allowance (multiplier)dl_limit_guest_ip_factor | Guests are limited per browser (cookie). To stop quota resets by clearing cookies, they are also limited per IP address, at the group limit multiplied by this number, so several visitors behind one IP address (office, school) do not share a single quota. | — | 5 |
Count coupon / download cart downloadsdl_limit_count_special | Downloads made through shared-link coupons or the downloads cart bypass access levels. Select Yes to also apply the limits to them. | — | 0 |
Limit reached: modal HTMLdl_limit_modal_html | HTML shown in a modal window when a user with an exhausted quota clicks a disabled download button, e.g. text and a Register / Subscribe button. Leave empty for the default message. Placeholders: {reset_in} time until the next download is possible (the period is sliding, so the oldest download expires first), {reset_full_in} time until the counter is back to zero, {reset_seconds} same as {reset_in} in seconds, {limit} files allowed, {used} files used, {window} length of the period, e.g. 5 min, 24 h, 7 d. | — | — |
Verify file contents
| Option | Description | Values | Default |
|---|---|---|---|
Restrict Uploadsrestrict_uploads | Verify file types by examining contents and prevent uploads of non allowed types | — | 1 |
Extensions
| Option | Description | Values | Default |
|---|---|---|---|
Legal Image Extensionsimage_extensions | Image Extensions (file types) that are allowed to be uploaded (comma separated) | — | bmp,wbmp,gif,jpg,jpeg,png,webp,ico |
No-check extensionsignore_extensions | Ignored file extensions for MIME type checking and restricted uploads. Please avoid this if you have non-trusted authors | — | — |
Mime types
| Option | Description | Values | Default |
|---|---|---|---|
Illegal MIME Typesupload_mime_illegal | A comma separated list of illegal MIME types for upload (blacklist) | — | text/html |
Legal MIME Typesupload_mime | A comma separated list of legal MIME types for upload | — | image/jpeg,image/gif,image/png,image/bmp,application/msword,application/excel,application/pdf,application/powerpoint,text/plain,application/x-zip |