add fileupload to rules