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.
I am having problems finding the right configuration with my server. Specially the server uri.
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)
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.
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
QUIERO VERIFICAR LA FUNCIONALIDAD DEL MODULO FTP EN WLW
GRACIAS
David Perez
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/"
It’s gotta be good
is it exist in french ?
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!
Hi really great tool.. To get it working I did this
1.copy both file(dll and xml) to "C:Program FilesWindows LiveWriterPlugins"
2.then edit the xml file as
serveruri ="ftp://ftp.crazybulb.com/"
linkurl="http://www.crazybulb.com/downloads/"
username="myusername"
REMEMBER ‘/’ THIS SLASH IS VERY IMPORTANT AT THE END. IT WILL GIVE YOU ERROR IF NOT BEEN PUT AT THE END OF BOTH URL
http://WWW.CRAZUBULB.COM