Simple FTP Plugin
Simple plugin to allow FTP upload of the contents of a particular Foswiki topic page.
This plugin provides a simple way of automating FTP-based uploading of topic content to a server. It provides an alternative to
PublishPlugin where the full power / complexity of the latter is not required.
After installation, one can add something like:
<a class='foswikiPopUp' href='%SCRIPTURLPATH{"rest"}%/SimpleFTPPlugin/ftpupload?srcweb=%BASEWEB%;srctopic=%BASETOPIC%;ftpserver=ftp.example.com;ftpusername=exampleuser;ftppassword=examplepassword;dstpath=/www;dstfilename=example.html' rel='nofollow'>Upload the FTP content of this page</a>
to the topic page with content one wishes to upload.
The content to be uploaded needs to be delimited by %STARTFTPCONTENT% and %ENDFTPCONTENT% on separate lines.
The user attempting to upload must have VIEW permission on the specified topic page.
Mandatory URL parameters are
srcweb
,
srctopic
; optional parameters are
ftpserver
,
ftpusername
,
ftppassword
,
dstpath
and
dstfilename
. If any of
ftpserver
,
ftpusername
,
ftppassword
or
dstpath
are not specified, the plugin uses the relevant default value(s) specified in the
configure
settings for the plugin. If
dstfilename
is not specified, the default name of the file created on the server is 'output.html'.
Preferences
A default server, username, password and path can be set in
configure
; example
configure
values are specified by default.
Installation
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See
http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Info