Skip to main content
To upload a file to the server, use a PUT or POST request.

Create a PUT request

To upload a file using a PUT request, pass the following URI:
The URI accepts these parameters: We recommend that you explicitly specify the value of the Content-type header field. Specify the file to be uploaded in the body of the PUT request. The server supports hash coding. Pass the value of the MD5 hash function to the FlexiCapture 12 server. Encode the value in Base64 using UTF-16LE and pass it in the standard Content-MD5 header. The server computes the hash function value for the file and compares it against the value passed in the header. If the values do not match, the file is deleted on the server. Two server responses are possible:
  • HTTP 201 (Created) – The file was uploaded to the server successfully.
  • HTTP 400 (Bad request) – A required parameter is missing, or the hash function value does not match the value specified in the header. No file was uploaded.
Currently, you cannot pass the registration parameters to the server.

Create a POST request

We recommend using PUT requests. If PUT requests cannot be used for some reason, you can upload a file to the server using a POST request. The projectName and batchType parameters can be passed in the URL, just like in a PUT request, or as text fields in the request body.

Pass multiple images in one request

You can pass multiple images in one POST request. Set the value of the Content-type field to multipart/form-data and specify the separator value in the boundary parameter. The names of the files included in a request must not be the same. The following example passes two files in a single request:

Pass a text field

You can also pass a text field in a POST request:
End the request with this boundary string: