Perhaps, an alternative could be to use access properties instead of array elements?
Attach a file by drag & drop or click to upload