Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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?
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" />
im using 4.5 version installed in a virtual directory, under .net 3.5
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
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?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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?
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" />
im using 4.5 version installed in a virtual directory, under .net 3.5
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
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?
is working on a reply...