Forum Discussion
Hey @darshthakkar,
Turn on the expressions support, and wrap the static part of the path in quotes. Than simply add the Date.now() function at the end. It will look something like this:
"sftp://localnetwork:22/usr/local/Enterprise/server/sharedcommon/incoming/SCM/Users/DT/inbound/ErrorLog.xlsx" + Date.now()
But I suppose you want the Date first, than the file extension so I would go with this:
"sftp://localnetwork:22/usr/local/Enterprise/server/sharedcommon/incoming/SCM/Users/DT/inbound/ErrorLog_" + Date.now() + ".xlsx"
Regards,
Bojan
Thanks @bojanvelevski for providing the actual string however it is failing as seen in the below snap:
Hi @smudassir , It is working when we don’t use a file upload and input stream gets through REST PUT and only the last document is there in the file, but we want the complete data in the file, hence we are trying to load it to a file and upload it back through REST PUT
I’m still getting the below error :
Reason : Transfer-encoding header already present
Related Content
- 4 months ago
- 10 months ago