@italia/icon 1.0.0-alpha.7 → 1.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -471,6 +471,14 @@ class FormControlController {
471
471
  case 'it-toggle-group':
472
472
  // non settare valori in formData, perchè ogni singola checkbox setta il suo valore
473
473
  break;
474
+ case 'it-upload':
475
+ // value is File[] — append each File object directly (not as string)
476
+ if (Array.isArray(value)) {
477
+ value.forEach((file) => {
478
+ event.formData.append(name, file);
479
+ });
480
+ }
481
+ break;
474
482
  default:
475
483
  if (Array.isArray(value)) {
476
484
  value.forEach((val) => {
@@ -1080,7 +1088,7 @@ if (typeof window !== 'undefined') {
1080
1088
  window._itAnalytics = window._itAnalytics || {};
1081
1089
  window._itAnalytics = {
1082
1090
  ...window._itAnalytics,
1083
- version: '1.0.0-alpha.7',
1091
+ version: '1.0.0-alpha.9',
1084
1092
  };
1085
1093
  }
1086
1094