How to upload a file to form file upload field using deluge in ZOHO People ?

How to upload a file to form file upload field using deluge in ZOHO People ?

Hello. Could you please answer: how to upload a file to form file upload field using deluge in ZOHO People ?

We have a custom form “Candidate_files”. There is the upload field “Fhoto”. And also we have another form “Employee_files” with the same field “Photo”. The objective: copy file from field “Photo” in “Candidate_files” to field “Photo” in “Employee_files”. I use code:

response = zoho.people.getRecordByID("Candidate_files",46625000002191406);
file_path = response.GetJson("Photo_downloadUrl");
//try to get file
file_variable = invokeurl
[
url :file_path
type : GET
connection:"people_connection"
response-format:FILE
];

And what next? How to upload the value in file_variable to form file upload field “Photo” in “Employee_files” ?