Post a reply

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: Cleaner S3 URL Generation — Remove s3.amazonaws.com from Generated Path

Thanks for your suggestion.

I have added this request to the tracker:
Issue 2421 – Optionally do not include hostname in generated S3 URL
You can vote for it there.

Though you can actually achieve this easily by defining a simple local custom command:
cmd /c echo s3:/!/

And check Copy results to clipboard.
https://winscp.net/eng/docs/custom_command
https://winscp.net/eng/docs/ui_pref_commands
https://winscp.net/eng/docs/ui_customcommand
vengelson

Cleaner S3 URL Generation — Remove s3.amazonaws.com from Generated Path

Hi,

WinSCP’s current Generate file URL dialog outputs URLs like:
s3://s3.amazonaws.com/bucket/key

While this format is valid internally for WinSCP, it is not usable in common S3 workflows such as:

  • AWS CLI (aws s3 ls s3://bucket/key)
  • Scripts/automation
  • SDK or application code (e.g. Python code constants)
  • Adding it to documentation

The extra s3.amazonaws.com/ prefix is redundant for normal S3 paths and adds an unnecessary manual step of removing it every time.

Feature request:

Please add an option or setting to output the cleaner AWS-compatible URL format:
s3://bucket/key

It can be an extra line in the dialog or an extra ckeckbox to chose between long and short variant.
This would be very useful for users who work with S3 programmatically.

Thanks!
Best regards!