Home> computing > NcFTPを使わずに右クリックからファイルアップロード

NcFTPを使わずに右クリックからファイルアップロード

  • October 20, 2007 11:11 PM
  • computing

ウェブサーバにファイルをアップロードするの、面倒ですよね。

私がWindowsマシン向けに最近までお勧めしていたのは、NcFTPコマンドを組み込んでバッチファイルを作成する方法です。
一旦作成したら、アップロードしたいファイルをバッチファイルへドラッグ&ドロップするだけで作業が終われます。
Operaユーザならmenu.iniを設定して、NcFTPを呼び出すバッチファイルを叩いてからブラウザでアップロード先のファイルを表示させたり出来ますよね。
(え、出来ない?...えーと、取り合えずgoogle.comへアクセスしてですね(以下略))

あと、右クリックからアップロードしたいならSendメニューに登録すればOKです。

まぁこの方法は別にコマンドラインからアクセス可能なFTPクライアントであれば、NcFTPを使わなくてもいいのですけども。

前置きが長くなってしまいましたが、実は「こういうのをGUI付きでやってくれるソフトがあれば、人に説明する手間が省けていいなー」と思っていて、ばっちりのソフトを見つけましたので紹介します。

RightLoad: About RightLoad - Upload files from your right click menu

RightLoad is a small program that allows you to quickly upload files directly from a Windows folder to your server. Instead of using a complicated FTP client just to upload a few pictures, you just right-click on the files, select the server and target folder and RightLoad will do the rest for you. When all files have been uploaded, RightLoad will automatically generate a list of different links to the files, ready to be copied into your post or website.
https://www.rightload.org/

配布サイトにも記述がありますが、もしかしたらShellFTPという名前でご存じの方がいるかも知れません。
かつてはShellFTPという名前で開発していたそうなのですが、違うソフトウェアの開発者から突然文句を言われて、面倒なので名前を変更したらしいです。
何だか悲しい話ですよ...

インストールは下記ページからダウンロードしたインストーラを起動するだけ。

RightLoad: Downloading RightLoad - Upload files from your right click menu

You can get the latest version here:Download RightLoad 0.8!
https://www.rightload.org/index.php/download.html

インストール出来たら、起動してみて設定を行いましょう。

設定方法については、公式フォーラムに記載された解説を日本語により勝手に翻訳したものを以下に置いておきますのでご参考下さい。

----------
Default server / 既定のアップロード先:
This is the server that will be selected by default.
右クリックメニューで標準アップロード先となるサーバを設定します。

Default tag / 生成されるタグ:
This tag will be used as default for the generated links.
アップロード後に生成されるタグを設定します。

When file exists / 既にファイルがアップロードされている場合:
Before a file is uploaded, RightLoad will check if a file by that name already exists. If this is the case, you can either overwrite the old file, rename it or cancel that upload. If you do not want RightLoad to ask you what to do every time ('Ask') you can set a default action here.
RightLoadはアップロード前に同名のファイルが無いのかチェックしていて、同名ファイルが存在する場合、上書きするかリネームするか、もしくはアップロードをキャンセルするか選択できます。もしアップロードの度に毎回このような選択をしたくない場合は、ここに'Ask'と記述することで避けることができます。

Use passive mode with FTP servers / FTPサーバでPassiveモードを利用する:
This is a recommended setting, as it avoids problems that may occur with firewalls or routers. Passive mode prevents the server from trying to establish a connection back to you when uploading.
ファイアウォールを使用しているような場合、通信に問題が発生することがあります。それを避けるために、ここでPassiveモードを有効にしておくことをお勧めします。

When I'm uploading a picture... / 画像ファイルをアップロードする際に...:
This is the default action to be taken when uploading a picture. Use this to disable the thumbnail dialog and always/never create them.
画像ファイルをアップロードする際にサムネイルを生成したりするかどうか設定できます。

Thumbnail width/height / サムネイルの縦横サイズ:
Here you can set the maximum dimensions of generated thumbnails. The original image's aspect ratio will always be kept, so the actual size of the thumbnails may differ.
サムネイルを生成する場合の最大サイズを設定します。元画像の縦横比率(アスペクト比)は常に保持されますので、生成されるサムネイルのサイズは一定になるとは限りません。

Show image dimensions in thumbnails / サムネイルに元画像ファイルのサイズを表示:
This will add a white bar at the bottom of thumbnails, in which the dimensions of the original image will be displayed.
サムネイルの下部に白い帯を追加し、そこへサイズ表示するかどうか設定します。

Frame thumbnail / フレームの追加:
This will put a 1px wide black border around all thumbnails.
1ピクセル幅の黒いフレームを追加するかどうか設定します。

Show RightLoad in context menu / 右クリックメニューにRightLoadの機能を展開:
Here you can choose if you want RightLoad to show up in your Explorer's context (right-click) menu. If disabled, you can only use RightLoad via the Send To menu.
右クリックメニューへ追加するかどうか設定できます。無効にした場合、「送る」メニューにのみRightLoad機能へのリンクが表示されます

Create log file / ログファイルの作成:
If you are experiencing problems with RightLoad, this option might help you find the cause. It will log all uploads to a file called log.txt in the program directory.
ログファイル(log.txt)をインストールディレクトリに生成するかどうか設定できます。アップロードに関する問題を判別するのに役立つでしょう。

Don't show URLs, just close when done / アップロード後のリンクURL表示:
If you don't want RightLoad to create links for you, you can use this option to make RightLoad close itself as soon as the upload is completed.
アップロード後にリンクURLの表示をするかどうかを設定できます。

----
Directories / ディレクトリ
You can define new directories for a server by selecting the server and clicking 'New Directory'. These directories will then show up under 'RightLoad' in your right click menu. This will allow you to upload your files to any subdirectory with only one click.
ここではアップロード先のサーバやサブディレクトリを設定します。ここで設定済みのディレクトリは右クリックメニューから素早くアクセスすることが出来ます。

Hostname / ホスト名:
Your FTP server's host name. This is usually the same as your domain name.
ここではFTPサーバのホスト名を設定します。通常はサーバのドメイン名と同じです。
(訳注:固定IPアドレスならIPアドレスでも可)

Port / ポート:
Usually you can leave this at default (21). This option is not available for SFTP servers.
通常のFTPサーバであれば設定不要ですが、SFTP等の21番ポート以外を使用する場合はこちらでポートを設定して下さい。

Default Directory / 既定のディレクトリ:
Here you can enter a default value for the 'Target Directory' field in the main window.
こちらでは既定のアップロード先ディレクトリを設定できます。

Root Directory / ルートディレクトリ:
Some servers require your files to be uploaded to a certain directory (e.g. /htdocs, /html, /domain.tld) before they show up on the web server. If that's the case for you, you can set the name of that directory here. Otherwise just leave it empty. This directory will not show up in the generated URLs. All other paths are relative to this directory.
幾つかのサーバではFTPからアクセス可能なディレクトリとして、FTP用のルートディレクトリが用いられています("/htdocs"など)。こうしたサーバに対して、必要に応じてルートディレクトリを設定しておくことで、アップロード後のリンクURL表示を正しく行うことが出来るようになるかも知れません。

Server type / サーバのタイプ:
If you have a SFTP server, change this to SFTP. Please note that SFTP support is still experimental and may be slow or not work at all.
もしSFTPを使用しているなら、ここで設定して下さい。但しSFTP関連の機能はまだ不完全なものですので、転送が遅くなったり、機能しないことがあります。

URL mask / URLマスク:
Sometimes, for example if your FTP host name differs from your actual host name, the URLs generated by RightLoad will not be correct. You can fix this by setting your own URL mask. For that, you can use several variables:
$host will be replaced by the host name
$dir will be replaced by the directory the files were uploaded to
$file will be replaced by the file name
$user will be replaced by your user name
For example, 'https://myserver.edu/~$user$dir$file' will turn into 'https://myserver.edu/~username/exampleDirectory/exampleFile.exe'.
Use the button 'Preview' to test your URL mask.
FTPサーバによっては、外部からのアクセスに使用するURLと異なるホスト名などでアクセスしていることもあるでしょう。こうしたサーバに対して、リンク用URLの内容を上書きして表示するように設定できます。
$hostはホスト名で上書きされます。
$dirはファイルがアップロードされたディレクトリ名で上書きされます。
$fileはアップロードされたファイル名で上書きされます。
$userはユーザ名で上書きされます。
例)
'https://myserver.edu/~$user$dir$file'
と記述した場合、
'https://myserver.edu/~username/exampleDirectory/exampleFile.exe'
というようなリンク用URLが生成されるでしょう。
----------

因みに現在のバージョンでは、"デスクトップ"などWindows側のパスに2バイト文字が含まれるとアップロードに失敗してました。
ということでまだNcFTP有利かなー。

あ、さっき書いていたShellFTPは、下記ページで入手することが出来ます。
機能的には似てますが、UIはちょっと堅い感じですね。

sunlit software

ShellFTP is a versatile FTP engine specifically designed for fast uploading.

It is engineered to maximize productivity and bridge gaps in the website development process.

It does this by integrating with your work environment, so that it is readily available when you need it.
https://www.sunlit-software.com/index.php?page=shellftp

...でもこっちは2バイト文字がパスに含まれてても大丈夫でした。
しかも生成URLリンクは更に柔軟ぽい。

にゅーあきば.comとかで微妙に紹介されてるみたいですが...こちらも日本語のリソース少ないですね。
ということで、また気が向いたら解説するかも知れません。

(個人的には、ファイルをブラウザ上へD&Dするだけでアップロード出来るべきだと思ってます。
現状だとAIRアプリで作るとかが現実的な落としどころなんでしょうけど)

Trackbacks:0

TrackBack URL for this entry
https://w3neu.net/mt/mt-tb.cgi/212
Listed below are links to weblogs that reference
NcFTPを使わずに右クリックからファイルアップロード from Sequentially Altered Days

Comments:0

Comment Form

Index of all entries

Home> computing > NcFTPを使わずに右クリックからファイルアップロード

Categories
Archives
Syndication

Return to page top