locked
Picture upload fails due to missing "/" in url RRS feed

  • Question

  • I'm using WLW 14.0.5025.904 to publish to MoveableType 3.2.  When I insert a picture and publish my post, the url to the image file is:
    http://<myblog>/blog1WindowsLiveWriter/<postname>/<imagefilename>

    The blog's folder is "blog1", so there should be a "/" before "WindowsLiveWriter", as it's a folder created by WLM.

    Edit Weblog Settings shows the path to my blog without the trailing "/".,
    If I try to Update Account configuration and add the trailing "/" to the path,  the config detector looks in the wrong place to find mt-xmlrpc.cgi.

    Any ideas how to fix this? 
    Saturday, November 1, 2008 2:00 AM

All replies

  • 'the config detector looks in the wrong place to find mt-xmlrpc.cgi.'

    Where does Windows Live Writer end up looking?   This should all work right out of the box.


    Though to solve your problem you can try the following:

    Edit your wlwmanifest.xml file to have the following line in the options node:

     

    <fileUploadNameFormat>path/to/where/you/want/your/uploaded/file/to/go/{FileName}</fileUploadNameFormat>

     

    You can also use the following tokens to help you in your quest to place your files:

    {Randomizer} -- You will need this if they are uploaded to the same folder and the names can conflict

    {FileExtension}

    {AsciiFileName}

    {WindowsLiveWriter}

    {AsciiFileNameWithoutExtension}


    -Brandon Turner [MSFT]
    Monday, November 3, 2008 5:41 PM
  • Brandon's solution might work but I wouldn't resort to that just yet--as he said, this should all work right out of the box.

    Can you check your mt-config.cgi and ensure that the value for CGIPath has a trailing slash?
    Monday, November 3, 2008 6:40 PM
    Moderator