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

Advertisement

vengelson
Joined:
Posts:
1

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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,673
Location:
Prague, Czechia

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

Reply with quote

Advertisement

You can post new topics in this forum