Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion server/mergin/sync/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ class Configuration(object):
"EXCLUDED_CLONE_FILENAMES", default="qgis_cfg.xml", cast=Csv()
)
# files that should be ignored during extension and MIME type checks
UPLOAD_FILES_WHITELIST = config("UPLOAD_FILES_WHITELIST", default="", cast=Csv())
UPLOAD_FILES_WHITELIST = config(
"UPLOAD_FILES_WHITELIST", default="map-script.js", cast=Csv()
)
# extra extensions to permit beyond the default block-list
UPLOAD_EXTENSIONS_WHITELIST = config(
"UPLOAD_EXTENSIONS_WHITELIST", default="", cast=Csv()
Expand Down
Loading