POST api/v2/tests/files/upload

Upload test file

Request Information

URI Parameters

None.

Body Parameters

The file

UploadTestFileCommandFile
NameDescriptionTypeAdditional information
File

File to upload.

File

Allowed file types docx pdf txt xlsx jpg png webp.

Maximum file name length 256 characters.

Maximum file size 10 MB (10,485,760 bytes).

Request Formats

multipart/form-data

Sample:
--610bd8e8-839d-425a-b11c-25391f7abbf2
Content-Disposition: form-data; filename="example.txt"; name="File"
Content-Type: text/plain

example
--610bd8e8-839d-425a-b11c-25391f7abbf2--

Response Information

Resource Description

The upload test file command result

UploadTestFileCommandResult
NameDescriptionTypeAdditional information
Result

UploadTestFileCommandResultKind

Required

Algorithm

HashAlgorithmKind

None.

Hash

Collection of byte

None.

Size

integer (64 bits)

None.

Response Formats

application/json

Sample:
{
  "Result": "Success",
  "Algorithm": "SHA256",
  "Hash": "QEA=",
  "Size": 1
}