only modify DYNAMIC_FILE_UPLOAD flag locally in upload_file() method