Skip to main content
In this section, you will find the following POST request examples for working with files: Loading files from the server Uploading files to the server Getting a checksum Loading by parts (modifying an existing file)

Loading files from the server

To load a file from the server, a server request should be created (AppServerURL + “/FlexiCapture12/Server/FileService/v1”). The request method should be POST, and the contents should be of the application/x-www-form-urlencoded type. The results should be recorded to a new file. Request body:

Uploading files to the server

You need to open an existing file and read data from it (The “content” string should be obtained from the binary file using Encoding.Default). To save the file, a server request should be created (AppServerURL + “/FlexiCapture12/Server/FileService/v1”). The request method should be POST, and the contents should be of the multipart/form-data type. Request body:

Getting a checksum

To get a checksum, a server request should be created (AppServerURL + “/FlexiCapture12/Server/FileService/v1”). The request method should be POST, and the contents should be of the application/x-www-form-urlencoded type. Request body:

Loading by parts (modifying an existing file)

Only a file that already exists on the server can be modified.
In order to modify the file, a server request should be created (AppServerURL + “/FlexiCapture12/Server/FileService/v1”). The request method should be POST, and the contents should be of the multipart/form-data type. Request body: