Copy URL

From Forklift Wiki

Jump to: navigation, search

Copy URL

  • right-click > Copy URL
  • File > Copy URL
  • shortcut: unassigned

Copy URL generates a direct URL that points to a file stored on your server. This is handy when you want to quickly share a large file with others. Just upload the file, use Copy URL to create on the clipboard a URL pointing directly to your file, which you can then paste it into an email or whatever, that you use to share the file.

Copy URL requires you to set up the Base URL and Base Path parameters for each connection on which you want to use this command, both found on the Options tab of the Connect... panel, when you create or edit a connection.

Copy URL is available for FTP, SFTP, Amazon S3, WebDAV and iDisk connections, but again, it needs to be set for each connection individually.


[edit] Base URL and Base Path

The URL copied to the clipboard is the result of 3 source data: the current full path of the file, as shown in the Path Navigator, the Base URL and Base Path. Here's the logic of how it's generated.

Copy URL = Base URL + (file full path - Base Path)


Let's see an example:

I want to send a URL to thebestpart.avi which I uploaded to our FTP server, in my public web folder.

The connection to the server is set up like this:

  • Server: ftp.binarynights.com
  • Initial Path: / - (on a server without chroot service, this would be /home/csaba)

The public folder on the server is: /public_html' - on a server without chroot, this would be /home/csaba/public_html

For Base URL, I enter: http://www.binarynights.com/~csaba/ , which is how all URLs for this FTP account would start.

For Base Path, I enter: /public_html , which is the part of the path that will have to be chopped from the beginning of the file's current path. (on a server without chroot, this would be of course /home/csaba/public_html)

Navigating to /Public_html on the server, I right-click thebestpart.avi. The Copy URL option is now available (it is grayed out as long as the correct Base URL and Base Path parameters are missing. Pasting the URL in an email, this is what I get: http://www.binarynights.com/~csaba/thebestpart.avi


which is the result of http://www.binarynights.com/~csaba/ + /public_html/thebestpart.avi - /public_html

version: ForkLift 1.6

Personal tools