Skip to main content

Hi Team,

How to upload the PDF files into the Hyperscience tool using post method in rest web service.
Please find the python script which is used for uploading the file so for the same process how to do using A360.

Please find the Python script for your reference.

  • data = {
            'metadata': json.dumps(metadata), 
            #'external_id': external_id, 
            'machine_only': machine_only,
             'flow_uuid': flow_uuid  
            #'layout_uuid': layout_uuid        
            #'restriction': restrictions
        }

     

        file_name=INPUT_FILE.name

        files = >
                ('file', (file_name, open(INPUT_FILE, 'rb'), 'application/pdf'))
            ]
        r = requests.post(endpoint_url, headers=headers, files=files, data=data)

has context menu

Be the first to reply!

Reply