How to upload a file to form file upload field from deluge script.

How to upload a file to form file upload field from deluge script.

Hi guys,

I need to store API response into Form File upload field . I'm not getting any errors but PDF file is not assigned to file upload field.

You can check possibilities using below details:
Method: POST

You need to generate secretKey and APIKey by Login to https://www.convertapi.com/a/su

Response:
{
"ConversionCost": 4,
"Files": {
"FileName": "www_google_com.pdf",
"FileSize": 68342,
"FileData": <<Data>>}
}
I need to store "FileData" to Form file upload field.
 
How to achieve this in Deluge script?