Skip to main content

Upload a file into a terminal session

POST 

/plugin-api/ssh-terminal/file-upload

Stores a file that is not an image on the terminal's host over SFTP, as /tmp/termix-files/<random id>/<name> (a .termix-files folder in the home on Windows), under the image storage expiry and limits. The name keeps only A-Z a-z 0-9 . _ - and is cut to 100 characters with the extension kept. The bytes are stored as they are. Returns the path to hand to the program. Refused when image storage is set to local.

Request​

Responses​

The stored file's path.