Was this page helpful?

Retrieve an Archived File

    Description of the code sample

    This feature is identical to the one described here, but allows a user to append an arbitrary filename to the end of the path. The purpose of this is to extend file download support to some browsers that use the last value in the path as the downloaded file name.

    Sample Code

    If the user wants to download an archived file as "foo.abc"

    curl -u admin:password -i http://mindtouch.address/@api/deki/archive/files/1/=foo.abc

    Implementation notes 

    curl flags

    -u
    Provides external user authentication.
    -i
    Outputs the HTTP response headers. Useful for debugging.

    Permissions

    ADMIN permission is required to execute above command.

    Response

    Note that a file, not an XML document, is returned. So if an image or any non-text file is requested, a bunch of junk will very possibly be returned to the console.

    Archived Files

    To view a list of archived files, follow the instructions here.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by