Adjust how uploads are detected in the template.