The parameter is a pointer to an array, so don't access it like it is an array of pointers.
Attach a file by drag & drop or click to upload