File preview

Preview uses the storageApiUrl which can be retrieved from any FileserverInfo.

Authentication Methods


  • With a username and password
Input Parameter Type Description
Token* String Security token
FileserverName* String FileServer name
Path* String Path where the file is stored
Edit String When true, it will return the html for editing the file
Response Type Description
Success String returns the html that's used to preview/edit the file

EXAMPLES

curl - v 'https://storage.example.com/storage/api.php?Token=rc1d3ntb53tt6b2vhail6rdtrsxov3v&Task=Preview&FileserverName=nmsa000000000001&Path=/directory/file.txt&Edit=true'

RESPONSE

Without the optional Url parameter:

<Response>
    <Status>1</Status>
    <Message></Message>
    <Html>
        //HTML
    </Html>
</Response>