Refactor the URI filters. Add a new filter for file upload.