Rss 2.0 via FEED
Ken Hughes... - WindowsLive Writer Plugin
Productivity, Technology and Automating Everything...
    
 

Having raved about WindowsLive Writer recently,  I've been using it extensively over the past few days.

I'm using Dasblog 1.8 for this site and apparently it doesn't support the API required to automatically upload images etc (Writer recognizes this and offers me FTP instead - which works well). That's all fine and good for images, but sometimes I want to give links to files...

Writer provides a pretty easy API and plug in architecture so I thought I'd write my own Plugin which allows the user to browse for a file, upload it and insert a link to the file into the post content.

This was a really exercise, taking only about 2 hours total for coding and testing. You can get the binary files here and the source code here. This was really for my own use (and doesn't do any error handling), but feel free to use it...

Basically, copy the binary files to the Plugins sub folder of your Writer folder and restart Writer, it should be automatically recognized and you'll get a new item in the 'Insert' tab of the sidebar

Click on the item and you get a dialog allowing you to specify the file to upload, which site to upload it to and the text to display as the link in the post.

 

The XML file allows you to specify what sites you want to upload to. Specify the correct settings for your FTP server / path.
Only one item should have 'default' set to true (this makes it the default selected item in the ComboBox) and if you have 'debug' set to true then you will get a messagebox indicating the Uri it is trying to send the file to.

Posted: Thursday, September 21, 2006 12:51:15 PM (GMT Daylight Time, UTC+01:00)  #   Comments [9]
TAGS: C Sharp | Technical
Tuesday, October 03, 2006 2:55:04 PM (GMT Daylight Time, UTC+01:00)
I am having problems finding the right configuration with my server. Specially the server uri.
Tuesday, October 03, 2006 3:14:25 PM (GMT Daylight Time, UTC+01:00)
Mario,

The serverURI parameter is the ftp servername and path to the folder where you wish to store the FTP'd files.
For example, my servername is ftp://ftp.kenandsarah.co.uk and the path on that server is /wwwroot/content/binary/

So the serverURI is set to ftp://ftp.kenandsarah.co.uk/wwwroot/content/binary/

If you have any problems then post your server settings and path as another comment and I'll configure it for you (do NOT include your username/password)
Tuesday, October 03, 2006 3:26:57 PM (GMT Daylight Time, UTC+01:00)
Thanks a lot for helping. I am trying to publish the files to a different server where my blog is installed. The address is http://www.uprm.edu/ideal . The path is home/ideal/public . I have tried many alternatives but none of them have worked for me.
Wednesday, October 04, 2006 4:15:55 PM (GMT Daylight Time, UTC+01:00)
Hi,

cool plugin, if it worked. I always get this error:


System.Net.WebException: The remote server returned an error: 227 Entering Passive Mode (62,75,177,193,111,246)
. ---> System.Net.Sockets.SocketException: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht ordnungsgemäß reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.

What could be wrong?

Thanks in advance
Saturday, December 09, 2006 7:00:17 PM (GMT Standard Time, UTC+00:00)
QUIERO VERIFICAR LA FUNCIONALIDAD DEL MODULO FTP EN WLW
GRACIAS
David Perez
Friday, January 05, 2007 5:57:07 PM (GMT Standard Time, UTC+00:00)
Thanks for the tool. Works great. For those that are having trouble, here's what I have in my XML config file for serveruri and linkurl. It does care about the last '/'.

serveruri ="ftp://meetandplay.com/"
linkurl="http://blogs.meetandplay.com/Posted/"
Saturday, February 03, 2007 2:08:36 PM (GMT Standard Time, UTC+00:00)
It's gotta be good
Thursday, February 15, 2007 2:03:46 PM (GMT Standard Time, UTC+00:00)
is it exist in french ?
tana40
Thursday, March 06, 2008 6:06:31 PM (GMT Standard Time, UTC+00:00)
hi there, great plugin. as i am using a free version of a wordpress-blog, hosted on wordpress, i am wondering if it is possible to configure the plugin correctly for using my regular ftp-account, which is another server (without php and mysql).

does it? i always receive an error...

thanks & regards!
martin
All comments require the approval of the site owner before being displayed.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview
     
 
 
Copyright © 2009 Ken Hughes. All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License.