Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Using a Protocol URL Address to open a file for editing

Your URL looks good. It works for me (in this format).
Though note that it only displays a download dialog.
It won't download the file automatically.
And it's not possible at all to open a file for editing using an URL.
ben_

Using a Protocol URL Address to open a file for editing

I'm trying to add a link via a userscript to a web interface, that opens a certain file for editing when clicked. The relevant part of the documentation seems to be here:
If path part is included and it ends with slash (/), WinSCP starts with the path as initial remote directory. If the path part does not end with slash, the file (or directory) specified by it is downloaded.

What actually happens is that whether or not the path ends in a slash, the directory is opened on the correct host but nothing is downloaded. How can I make a link in the following form open a file for editing when clicked?
<a href="winscp-sftp://ben@hostname.com/home/ben/path/to/file.txt">test</a>

The linked documentation mentions adding ;save after a URL to trigger that action, so I tried adding some possibly-relevant commands in the same format eg ;edit or ;get, with no change in results.