Unable to Download Document | Community
Skip to main content
Level 1
April 3, 2024
Question

Unable to Download Document

  • April 3, 2024
  • 1 reply
  • 882 views

I am having a problem downloading documents from Workfront through the API. I am able to get the downloadURL and this download URL works when I'm logged in through my browser. However, when I try to use the URL in Powershell, it is not working.

 

I am running this command:

$downloadResponse = Curl -Uri $url -Header $header -Body $body -OutFile $downloadPath

 

I am providing an apiKey (I've tried in both $body and $header) in the CURL command in Powershell.

The $url variable contains something like this:
https://<mycompany>.my.workfront.com/internal/document/download?ID=abc123456def123456

 

I am getting the file, with the proper name, in the proper location. But, the file that is downloading is a 4k file (should be much larger), starting with this:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 
<body onload="document.forms[0].submit()">
<noscript>
<p>
<strong>Note:</strong> Since your browser does not support JavaScript,
you must press the Continue button once to proceed.
</p>
</noscript>
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

February 23, 2025

Hi, were you able to resolve this issue ? I am encountering similar issue, can you help me with the solutoin?