Manage Files

This section explains on how to add, update, download, delete files and also on how to view version history of files in the Syncfusion Report Server.

Files that are accessible by the user depending on the user’s permission is displayed in the files page.

Manage Files

Add Files

Files can be added in the Report Server only when you have Create All Files permission.

Steps to add a file

  1. Click the Upload button in the menu and select File to add a file.

    Create File

  2. Fill the form with name and description of the file and upload the file in the Upload File dialog box. Any file can be uploaded into the Report Server and the file can be linked/added to the Reports.

    Add File

  3. While clicking Add, the file will be added to the Report Server and it can be used in any one of the reports.

NOTE

Read Write Delete Download permission for the Specific File will be added for the user who created the file.

Update Files

Name, description and the physical file can be changed in the update file dialog box.

Update file

Share Files

This section explains on how to share files with the other users in the Report Server.

Steps to share a Files

  1. Click the Actions button in the Files grid context menu and select Manage Permissions option.

    Manage Permission

  2. Select the permission access from the Select Access dropdown and select the users or groups to share the files.

    Share Data source

  3. After selecting the access and users or groups, click on the Add Permission button.

    Add Permission

NOTE

Only the user who created the file can share the file with other Report Server users.

Remove Permission

The user who created the file can remove the shared file permissions using the Remove option in the Actions column of the each permissions.

Remove Permission

Download Files

Click the Actions button in the files grid context menu and select Download to download the file compressed in a .zip format.

Download file

Version History

Versions and file logs for each file are maintained in the Report Server for every changes in the file. Check Version History section in Manage Reports for more details.

Delete Files

Files can also be deleted from the Report Server when they are no longer required.

Click the Actions button in the files grid context menu and select Delete to delete the file.

Delete File

REST API Reference

The following table illustrates the list of available APIs related to files in Syncfusion Report Server.

Action HTTP Method Endpoint Description
AddFile POST /api/v2.0/files Adds a new file to the server. File details must be passed as input.
UpdateFile PUT /api/v2.0/files Updates the file in the server. Updated file details must be passed as input.
GetFiles GET /api/v5.0/items Returns the list of files for current user. ItemType should be File.
GetFileLocation GET /api/v3.0/items/{itemId}/location Returns the item location of the specified file. Specific File ID should be passed in path parameter.
IsFileNameExists POST /api/v2.0/items/is-name-exists Returns an item existence whether the given file name already exists or not in server. File name and ItemType as File should be passed in request body.
GetFileDetail GET /api/v2.0/items/{id} Returns the specified file details from the server. File item ID should be passed in path parameter.
DeleteFile DELETE /api/v2.0/items/{id} Deletes the specified file from the server. File item ID should be passed in path parameter.