in server/app/lib/middleware.py [0:0]
def to_python(self, filename):
extension = ""
# If foo.bar, split into base and ext. Otherwise, keep filename as full string (even for .htaccess etc)
if "." in filename[1:]:
filename, extension = filename.split(".", maxsplit=1)
return filename, extension