Added flask's upload config support