These docs are for v1.0. Click to read the latest docs for v3.0.

❗️

API is still in development

This API is under active development. If you are interested in early access, please drop us a note at [email protected] and we will be happy to let you in and show around.

Using rollMyFile API to edit files

It is no more complex than opening files for viewing. However, it requires your web application to be ready to accept file updated by the user. To do that you need to implement file access endpoint.

On a page, where you want to let users edit files stored in your web application, you simply do the following:

<script type="text/javascript" src="https://api.rollapp.com/1/js/rollmyfile.js"></script>

<script type="text/javascript">
    var key = "SeCur3AP1K3y";

    var rollMyFile = new RollMyFile(key);
</script>

And then, if your file access endpoint is ready, all it takes to edit a file is

rollMyFile.editFile("https://www.example.com/case/123/attachments/overview.docx");

User will not be allowed to save file with different name or to a different location. In applications, which support operation like File->Save As, access to this function will be blocked.