Set the required option to the file field