Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Property

Mandatory field

Description

TypeFilling exampleNote
PropertyActionUpload fileYesThe action reads a file on the local file system of the agent under which the action is launched and saves it to the file storage

Before uploading a file, the action must connect to the file store using the endpoint and access token it receives from the agent, which in turn receives them from the configuration service
ParametersFile path(s)YesAn array in which each element contains the path to a file on the local file system of the agent under which it was savedRobin.FilePath

[

C:\Users\<User>\Application Data\Robin Platform\2.0.0\Runs\Host\User\<task_execution_id_id>\in\CC28BA9D-346B-4743-99FE-2AE5938030F6\File.txt,

C:\Users\<User>\Application Data\Robin Platform\2.0.0\Runs\Host\User\<task_execution_id_id>\in\CC28BA9D-346B-4743-99FE-2AE5938030F6\File2.txt,

]

The action should select the filenames under which the files are stored on the local file system and pass the array of filenames to the service that will work with MinIO

The POST method must be used

ResultRemote file(s)YesJSON object, which is an array in which each element contains a set of meta information about the file (id, name, content type, and location of the file).Robin.RemoteFile


[
  {
    "Id""92BB422E-1DFD-4C38-8A7A-95D4476C3EB7",
    "FileName""File.txt",
    "ContentType""text/plain",
    "Url""/files/92BB422E-1DFD-4C38-8A7A-95D4476C3EB7"
  },
  {
    "Id""CC28BA9D-346B-4743-99FE-2AE5938030F6",
    "FileName""File2.txt",
    "ContentType""text/plain",
    "Url""/files/CC28BA9D-346B-4743-99FE-2AE5938030F6"
  }
]

The path under which each file was saved to the file storage file system is generated by the service itself, which works with MinIO

...