adapt upload view templates to changed upload view
file might be None