Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Many methods in the API that download or generate files, do not send back the file immediately. Instead they return a "token". The present method permits to fetch the actual file for the token.

NOTE: The HTTP response is configured so that a browser would download the file with a file name. See also: media/get/{token}/stream

URL

(GET) /media/get/{token}

 

PARAMETERS

token

The reference token of file.

 

RESULTS

The file as an attachment, see below.

The HTTP response header includes:

  • The Content-Type (such as "text/xml")
  • The Content-Disposition set to "attachment" and including the file name

 

ALTERNATIVE METHOD

If you want to have a browser show the file inline, use this method instead: media/get/{token}/stream

 

 

 

  • No labels