Did anyone ever present a solution to this? I would like to upload a backup file to webserver (running nextcloud) using the put method. How can this be done?
A method using curl works like this (both examples with the variables defined beforehand of course):
(I also tried with the src-path more like the dst-path.) While it does connect, it uploads/creates a zero-byte file. How can I attach the backup file to upload it?
Yes I know, but it will be easier to use TFTP-upload or HTTP(s)-upload because there are lots of free components outside. For SFTP it’s a bit difficult and expensive to add it to one self-made application
I’m talking about embedding all in one application. I know I can use one external SFTP/SSH server, but If you want to release one application with all inside that external SSH server it’s an extra.
I don’t know how why it’s so difficult to add http/https upload when they have the http/https protocol coded at this moment.