improve file_upload category and max-width handling