Configure File Upload Restrictions in Hue
Allows administrators to control which file types users can upload through the File Browser.
About this task
Starting with the DEP 10.1.0 release, Hue 4.11.0 allows administrators to control which file types users can upload through the File Browser.
Filtering is based strictly on the file name extension, not file content. The check uses the last suffix after the final dot (.) and is case-insensitive.
If both allow and restrict lists are defined, restrict takes precedence.
Default Behavior (No Restrictions Configured)
hue.ini are commented
out:[filebrowser]
## restrict_file_extensions=.exe, .zip, .rar, .tar, .gz
## allow_file_extensions=.tsv, .csv, .xlsxBehavior in Default State
- All file extensions are allowed.
- No filtering is applied during upload.
- Files with any extension (including
.exe,.zip, etc.) can be uploaded. - Files without extensions are also allowed.
In this state, Hue performs no extension-based validation. This is the out-of-the-box behavior after installation unless explicitly configured otherwise.
Configuration Location
/opt/mapr/hue/hue-4.11.0/desktop/conf/hue.ini[filebrowser]Configuration Options
Restrict Extensions
[filebrowser]
restrict_file_extensions=.exe, .zip, .rar, .tar, .gzAllow Extensions
[filebrowser]
allow_file_extensions=.csv, .tsv, .xlsx[filebrowser]
restrict_file_extensions=.exe, .zip, .rar, .tar, .gz
allow_file_extensions=.csv, .tsv, .xlsx-
.exe,.zip,.rar,.tar,.gz- Blocked .csv,.tsv,.xlsx- Allowed- Any other extension - Blocked
- Files without extension - Blocked
Restart Requirement
hue.ini, restart
Hue:maprcli node services -name hue -action restart -nodes <node>-
Validation is extension-based only (no MIME/content inspection).
- The final extension determines behavior (
archive.tar.gz→.gz). - Recommended for production: combine both restrict and allow lists for stricter control.