Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon 11 posts 31 karma points
    Jul 13, 2010 @ 13:27
    Simon
    0

    Tilde (~) Url Generated by Upload Datatype

    When I upload a image to a page using upload datatype, the image doesn't show, and when i look at the source code, the image link is ~/media/....

    can someone give me some direction?

    Thanks a lot!
    Simon

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Jul 13, 2010 @ 13:58
    Peter Duncanson
    0

    The "~" is a special .net short cut for urls which should be swopped out for the root of your application. Not sure why it is not doing it though. Can you post your XSL you are using to render out the image?

  • Simon 11 posts 31 karma points
    Jul 13, 2010 @ 14:10
    Simon
    0

    im not using any xls, just html template:

    <img src="<umbraco:Item field='pressReleaseImageSmall' runat='server'></umbraco:Item>" alt="<umbraco:Item field='pressReleaseImageAltText' runat='server'></umbraco:Item>" />

    and the output is:

    <img src="~/media/44/kv_procopt_pb5.jpg" alt="fdsafdsa" /> 

  • Simon 11 posts 31 karma points
    Jul 13, 2010 @ 14:11
    Simon
    0

    im using 4.5 version installed in a virtual directory, under .net 3.5

  • Bill Alexy 1 post 21 karma points
    Jul 20, 2010 @ 18:44
    Bill Alexy
    0

    Looks like ti was a bug that has been recently fixed in change set 73401

    http://umbraco.codeplex.com/SourceControl/changeset/changes/73401

    http://umbraco.codeplex.com/workitem/28145

  • Greg Berlin 818 posts 634 karma points
    Mar 29, 2012 @ 16:38
    Greg Berlin
    0

    This has cropped up again in v4.7.1.1.. i just upgrade from 4.7.0 and now all my site images have the tilde

    Is there a patch for 4.7.1.1 to fix this?

    Or should i be editing all my razor scripts to remove the tilde if it exists?

Please Sign in or register to post replies

Write your reply to:

Draft