validate: function (attrs) {
    if (!attrs) return;

    if (attrs.type === 'file') {
      // Number of files