Uploading Output

Report Commander can upload the exported report to a remote server using HTTP or FTP.

FTP

To upload the output file using FTP, use the following syntax for the exportfile option:

exportfile=ftp://userid:password@servername/output/myreport.pdf

Note that the user ID and password needed to connect to the FTP server are included in the URL. The URL must include the path and the file name for the export file.

Note that exporting to HTML may produce more than one file (more information). In this case all of the files will be uploaded to the specified directory.

HTTP

Report Commander can upload output using HTTP, though this option will not be useful for most users. It is primarily of use for document management systems that accept HTTP uploads.

Report Commander can upload to a Web server in two ways. Use the uploadmethod command-line option to specify the method used.

HTTP PUT

When HTTP PUT is used, Report Commander "puts" the file(s) directly to the Web server. This approach works like FTP: you specify only the URL to which the output should be saved. For this method to work, the Web server must be specifically configured to accept files using HTTP PUT.

The command-line syntax for this option is:

uploadmethod=put exportfile=http://webserver/outputfiles/myreport.pdf

uploadmethod=put exportfile=http://userid:password@webserver/outputfiles/myreport.pdf

HTTP POST

When HTTP POST is used, Report Commander posts the file(s) to a form on the Web server. To use this method, the necessary form must exist on the server, and must contain the necessary programming logic to accept the uploaded files and store them in the proper location.

To upload with HTTP POST, you must specify both the name of the export file and the URL of the form to which the file should be posted.

Important: When using HTTP PUT, the URL you specify is the URL of the form that accepts the upload; it is not the URL of the directory where you want the file to end up.

The command-line syntax for this option is:

uploadmethod=post exportfile=myreport.pdf uploadtarget=http://myserver/uploadforms/upload.aspx

uploadmethod=post exportfile=myreport.pdf uploadtarget=http://userid:password@myserver/uploadforms/upload.aspx

In these examples, Report Commander exports the report to "myreport.pdf" and then posts the file to the form at http://myserver/uploadforms/upload.aspx.