I have updated the code as you suggested but I still get upload error.
the previous code was working with the single file submission form block but was appending the submitter name together with the classic random string that forminator creates.
Can you suggest how to make this work also with multiple file uploads?