Skip to main content

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​

OptionDescriptionValuesDefault
Display File Language as
display_file_lang_as
Select appearance/behavior of the file language—0

Folders​

OptionDescriptionValuesDefault
Secure files path
file_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 path
media_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​

OptionDescriptionValuesDefault
Index PDF files
index_pdf_files
Add PDF files contents to the search index (currently only text is added)—0
Path to PDF parser
pdfparser_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 files
index_csv_files
Add CSV files contents to the search index—0

File editor​

note

Choose which fields appear when editing a file. Hidden fields keep their saved values. Advanced settings still require the file-properties permission.

OptionDescriptionValuesDefault
Download filename
file_editor_show_download_filename
——1
Title
file_editor_show_title
——1
Description
file_editor_show_description
——1
Replacement upload
file_editor_show_replace
——1
Keep old upload date
file_editor_show_keep_uploaded_date
——1
Keep old uploader
file_editor_show_keep_uploaded_by
——1
Language
file_editor_show_language
——1
Access
file_editor_show_access
——1
Download stamping
file_editor_show_stamp
——1
Hit count
file_editor_show_hits
——1
File type
file_editor_show_type
——1
File size
file_editor_show_size
——1
Storage filename / URL
file_editor_show_storage
——1
Server path
file_editor_show_path
——0
note

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)​

OptionDescriptionValuesDefault
Enable
file_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
Label
file_custom1_label
Label text. You may enter a language string key (it will be translated if it exists)——
Display label
file_custom1_label_show
Show the label in the forms and on the site—1
Default
file_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 default
file_custom1_default_use
Select when these default property value will be used—0

Custom file property 2 (HTML)​

OptionDescriptionValuesDefault
Enable
file_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
Label
file_custom2_label
Label text. You may enter a language string key (it will be translated if it exists)——
Display label
file_custom2_label_show
Show the label in the forms and on the site—1
Default
file_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 default
file_custom2_default_use
Select when these default property value will be used—0

Limits​

OptionDescriptionValuesDefault
Maximum Size
upload_maxsize
The maximum size for an upload (in bytes). Use zero for no limit. Note: your server has a maximum limit.—10000000
Allowed extensions
upload_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)​

OptionDescriptionValuesDefault
Trusted remote file hosts
remote_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 sizes
remote_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​

note

Resizing will be done at the user's browser, thus you get faster upload and less server space consumption

OptionDescriptionValuesDefault
Resize
resize_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 width
upload_max_w
——4000
Image height
upload_max_h
——3000
Processing method
upload_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​

OptionDescriptionValuesDefault
Enable download limits
dl_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
note

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.

OptionDescriptionValuesDefault
Counting mode
dl_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
Period
dl_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 unit
dl_limit_window_unit
Minutes, hours or days.—60
Limit per user group
dl_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 downloads
dl_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 HTML
dl_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​

OptionDescriptionValuesDefault
Restrict Uploads
restrict_uploads
Verify file types by examining contents and prevent uploads of non allowed types—1

Extensions​

OptionDescriptionValuesDefault
Legal Image Extensions
image_extensions
Image Extensions (file types) that are allowed to be uploaded (comma separated)—bmp,wbmp,gif,jpg,jpeg,png,webp,ico
No-check extensions
ignore_extensions
Ignored file extensions for MIME type checking and restricted uploads. Please avoid this if you have non-trusted authors——

Mime types​

OptionDescriptionValuesDefault
Illegal MIME Types
upload_mime_illegal
A comma separated list of illegal MIME types for upload (blacklist)—text/html
Legal MIME Types
upload_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

Files Configuration​