Set maxfiles in widget