Eric Baumgartner's Radio Weblog
Notes on a transition from Blogger to Radio, with a bit of educational technology thrown in for spice.
        

File upstream driver available

December, 2004: This page is out of date. Radio has file upstream support built in, so you shouldn't need to use my version.

I've written a first pass at an upstream driver that will place rendered files somewhere on your hard disk (or a connected file server). I make no guarantees about reliability, but it's here if you'd like to try it out.

Current version is 1.0d2, posted Jan 25, 2002.

Downloads: .zip for Windows, .sit for Mac.

This driver is free for use by anyone. Feel free to modify the source code and redistribute, as long as you notify me of your changes. (We might as well centralize this, at least until Userland bakes in a file driver.)

Version History

1.0d2: File deletion should work properly now.

Safety Note

Be very careful specifying the path where you want the rendered files to live! If you happen to specify an existing directory, this driver will happily overwrite whatever files it finds there!

Disclaimer

Use this driver at your own risk. Be aware that improper use of this driver may lead to the loss of data (see Safety Note). The author of this driver disclaims all responsibility for any damage, loss of data, night sweats, nervous tics, or anything else that results from using this driver.

Installation and Use

Installation should be fairly simple. Unpack the download above, then double-click. Radio should ask you if you want to install the driver at "user.radio.drivers.upstream.file". That's where you want it.

To use this driver, you need a custom #upstream.xml file in the directory within the Radio/www folder hierarchy that you want to render locally. (Make sure you've read the Help notes on custom upstreaming. Even though it talks about things in terms of ftp, the same general principles -- where you place the #upstream.xml file, how to route things to different servers -- apply.)

Here's an example #upstream.xml to get you started:

<upstream type="file" version="1.0">
  <path>HardDrive/Users/YourName/test/</path>
  <url>http://www.somewhere.com/test/</url>
  </upstream>

As you can see, there are only two parameters: path and url.

path defines the path to the folder where you would like the rendered files to be saved. Note that you must use Unix-style delimeters. The driver will replace these with delimeters appropriate for your platform.

url has the same meaning as for the ftp and xml drivers.

Try it out, let me know how things go!



© Copyright 2002 Eric Baumgartner.
Last update: 1/25/02; 12:33:48 PM. 0 page reads.