HTTPS Post and Target Folder for Upload
Posted: Wed Nov 09, 2016 4:28 pm
I am trying to set up a project using the HTTPS Post functions to send files to a cloud server. I was finally able to get the certificates set up correctly on my resource and it connects successfully. The issue I'm having is that I cannot get the project process to pass the file_store_location parameter and value to the cloud server. The Post function is placing the files in the home folder after connection, and the file_store_location option is being ignored. I've tried using a request header as well as a request parameter (as seen below), but nothing seems to pass the target folder to the cloud server.
Does anyone have any suggestions? I contacted the cloud vendor and they don't know what is not working. They said they are able to use generic functions like the postman plugin in Chrome to make this work successfully.
Does anyone have any suggestions? I contacted the cloud vendor and they don't know what is not working. They said they are able to use generic functions like the postman plugin in Chrome to make this work successfully.
Code: Select all
<https resourceId="Cloud Test Server" followRedirects="true" version="1.0">
<post label="Post Method" uri="/portal/jaxrs/jaxrs/FileTransfer/Upload" inputFilesVariable="${HRFiles}" fileFieldName="file" contentType="multipart/mixed" followRedirects="true" responseBodyDestination="file" responseBodyFile="${system.job.workspace}Response.txt" whenResponseBodyFileExists="overwrite" responseBodyFileVariable="Resp_Body">
<header name="file_store_location" value="PB\ImpExp\Data\Input" />
<parameter name="file_store_location" value="PB\ImpExp\Data\Input" />
</post>
</https>