I have started working with some custom file upload fields for different purposes like parsing a CSV or converting the file type that was uploaded.
I have a case where we want to convert an uploaded file from an Apple format to a Microsoft format but then upload the Microsoft format to the repository. So that Apple users can use the same form as Windows users are using without issue.
The problem with custom upload fields is there is no variable to access in the process diagram's Save to Repository task.
So I tried the following solution and I get no errors, but I do not see the file in the resulting output field
let fileInputElement = document.getElementById('Field2'); fileInputElement.files = document.getElementById('content-target'),input.files[0];