Retrieve a media file

To retrieve a file from the media server you will need the UUID of the media object associated with the file and JWT token. Make a GET request at:

http://127.0.0.1:3000/download/${UUID} with cookie ‘jwt=${JWT}’

When you make this request, the media server does the following:

  1. Using the JWT provided, the media server gets the access status of the application for the media object.
  2. If the application does not have access to the object with the given UUID the media server returns an unauthorized status.
  3. If the application does have access to the object the media server retrieves the corresponding data from the PixelCore and returns it to the requestor.
  4. The data is served with content type set to the MIME type stored in the value of the ‘MEDIA_TYPE’ property associated with the Media Object. If this value is not set the content type default to text/plain.