Copy URL to clipboard command

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
rreicher
500 Command not understood
Posts: 3
Joined: 2017-03-22 18:31

Copy URL to clipboard command

#1 Post by rreicher » 2017-03-22 18:50

Command output is not compatible with input required for Insert URL link in email. I always have to modify it to make it work. Here is an example.

FileZilla "Copy URL to clipboard" outcome is ftp://rpeftp%2540rpefire.com@ftp.rpefir ... %20PDF.zip

Input required by email editor http://www.rpefire.com/_Mix/Madison%20PDF.zip

As it can be seen, ftp prefix needs to be changed to http://www and /public_html has to be manually removed.
Is there a way to avoid all these modifications? Thank you :?:

User avatar
boco
Contributor
Posts: 24783
Joined: 2006-05-01 03:28
Location: Germany

Re: Copy URL to clipboard command

#2 Post by boco » 2017-03-22 19:09

That is to be expected. FileZilla is an FTP/SFTP client, so it doesn't know anything about HTTP(S) URLs. (S)FTP and HTTP(S) are completely different services.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

rreicher
500 Command not understood
Posts: 3
Joined: 2017-03-22 18:31

Re: Copy URL to clipboard command

#3 Post by rreicher » 2017-03-22 19:32

Thank you very much for clarification!
I just imagine a small check box "copy link as HTTP(S)-compatible"...

User avatar
botg
Site Admin
Posts: 32470
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Copy URL to clipboard command

#4 Post by botg » 2017-03-22 19:36

Unfortunately not possible, there is no way to get a HTTP URL corresponding to an FTP URL in a generic way. The best that can be done is to replace ftp:// with http://, but that's so wrong in most cases, that it's better done manually.

Ray Koopa
500 Command not understood
Posts: 1
Joined: 2017-06-08 22:41

Re: Copy URL to clipboard command

#5 Post by Ray Koopa » 2017-06-08 22:44

Since I was waiting for a feature like this to basically search and replace for the start of the copied URL, I created this AutoHotkey script to do that for me. When text starting with your username FTP URL appears in the clipboard, it modifies the start of it and overwrites the clipboard. You might wanna use it too!

Code: Select all

#Persistent
return

OnClipboardChange:
; Check if clipboard contains textual content.
if (A_EventInfo = 1)
{
	; Check if the clipboard text starts with an FTP URL.
	if (InStr(Clipboard, "sftp://userblabla@") = 1)
	{
		Clipboard := StrReplace(Clipboard, "sftp://userblabla@", "http://")
	}
}
return
As it is posted, it would turn
sftp://userblabla@example.com/index.html
to
http://example.com/index.html

rreicher
500 Command not understood
Posts: 3
Joined: 2017-03-22 18:31

Re: Copy URL to clipboard command

#6 Post by rreicher » 2017-06-10 03:36

Ray,
Just created AHK file and placed it in Windows Startup folder. Works great! Thank you very much! :D

User avatar
schroef
504 Command not implemented
Posts: 7
Joined: 2017-08-04 16:21
First name: Rombout
Last name: Versluijs

Re: Copy URL to clipboard command

#7 Post by schroef » 2017-08-04 16:42

It would be great if we could enter a base URl and then also have the option to copy/paste the file URL without ftp path. I remember this function in Transmit, its very usefull. How many times dont you need to check a file. Now each time we need to alter the copied address.

What is the use for a ftp address?

EDIT
i just checked how it was done in Transmit. There we have a option to either copy url or copy path. Copy URL give the www address and copy path give the FTP address. Thats seems to make more logic i guess.

See attached image for input settings
Attachments
Screen Shot 2017-08-04 at 12.42.54 PM.png
Screen Shot 2017-08-04 at 12.42.54 PM.png (165.92 KiB) Viewed 10062 times

Galahad
500 Command not understood
Posts: 1
Joined: 2017-12-13 17:32
First name: j
Last name: l

Re: Copy URL to clipboard command

#8 Post by Galahad » 2017-12-13 17:46

Hi !
I'm new here and I would like to re-open this topic, because I think that getting a HTTP or HTTPS url from your software should be possible.
We (users) could add a "root url" (that is the main URL of our website) into the website manager, like in Transmit or the old Fireftp (for firefox 56).
Then we could get the URL of the file that is on the distant server.
What do you think about this?
May you add the feature a bit later?
Thanks for reading.
:)

User avatar
schroef
504 Command not implemented
Posts: 7
Joined: 2017-08-04 16:21
First name: Rombout
Last name: Versluijs

Re: Copy URL to clipboard command

#9 Post by schroef » 2018-04-14 03:26

They dont like new adds or items which speedup workflow?
This is quiet a big time saver, how about testing links, copying. Now i need to redo all those step fixing the url.

Wonder if they even check this forum???

User avatar
botg
Site Admin
Posts: 32470
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Copy URL to clipboard command

#10 Post by botg » 2018-04-14 17:06

There is no mapping between FTP and HTTP URLs. http://example.com/pub/docs/file.txt could be the same as ftp://example.com/docs/public/txt.file

These things cannot be automated reliably.

Thurston.Pratt.III
500 Command not understood
Posts: 3
Joined: 2013-04-27 13:59
First name: Thurston
Last name: Pratt

Re: Copy URL to clipboard command

#11 Post by Thurston.Pratt.III » 2018-05-30 03:06

The excuses that you can't reliably map FTP to HTTPs URLs is total BS. It can be done with caveats that would satisfy 99% of the people needing it and manually work around it EVERYDAY. Its just laziness and snobbiness that this feature doesn't exist. Instead of having a feature that would be valued and useful, it's pig-headed developers who lord over us with technical semantics and excuses.

--

Thurston.Pratt.III
500 Command not understood
Posts: 3
Joined: 2013-04-27 13:59
First name: Thurston
Last name: Pratt

Re: Copy URL to clipboard command

#12 Post by Thurston.Pratt.III » 2018-05-30 03:09

They don't want to solve problems, the man just wants to keep us all down.

Herve_be
504 Command not implemented
Posts: 7
Joined: 2015-01-31 13:09
First name: Rudy
Last name: Vanclaire

Re: Copy URL to clipboard command

#13 Post by Herve_be » 2019-08-02 12:41

rreicher wrote:
2017-06-10 03:36
Just created AHK file and placed it in Windows Startup folder.
Hi,
Can you tell me more about how to ?
Thanks

Post Reply