file

Get file contents

Downloads the specified file from a media directory.

get/api/file/{DirName}/**

Query parameters

tailinteger

Return the last N lines instead of the whole file

playboolean

When 1, set a playback-oriented content type instead of a forced attachment

attachboolean

When 1, force attachment download for images

Response

File contents; content type varies by file extension and query params

Changes

Changed in 2 of the 28 revisions of this API.235

    • added the new optional query request parameter attach

      new-optional-request-parameter

    • added the new optional query request parameter play

      new-optional-request-parameter

    • added the new optional query request parameter tail

      new-optional-request-parameter

    • added the media type application/octet-stream for the response with the status 200

      response-media-type-added

    • added the media type text/plain for the response with the status 404

      response-media-type-added

  • 34a577bdabff23See the full diff
    • removed the media type application/octet-stream for the response with the status 200

      response-media-type-removed

    • removed the media type text/plain for the response with the status 404

      response-media-type-removed

    • deleted the query request parameter attach

      request-parameter-removed

    • deleted the query request parameter play

      request-parameter-removed

    • deleted the query request parameter tail

      request-parameter-removed