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
- 200
- 400
- 409
- 502
- 503
- 507
The stored file's path.
Missing file or session, or image storage is set to local.
The terminal is not connected.
Writing to the remote host failed.
The terminal has no SSH connection to store the file on, or the storage limits cannot be checked.
The storage limit was reached.