fix and implements ArrayAccess in UploadFiles