Copied to clipboard

Flag this post as spam?

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


  • Ian Pettman 25 posts 53 karma points
    Jun 05, 2013 @ 12:55
    Ian Pettman
    0

    Display list of download files syntax change > v4.5

    Hi Having a bit of trouble matching the tutorial with the current syntax. Version 4.11.8 We are trying to display (list of)  link(s) to the user to download any of a number of previously uploaded files. Our (best?) attempt is:

    <xsl:value-of select="umbraco.library:GetMedia($currentPage/uploadFile, 'false')/umbracoFile"/>

    gives error:

    System.OverflowException: Value was either too large or too small for an Int32.
    at System.Convert.ToInt32(Double value)
    at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
    at System.Xml.Xsl.Runtime.XmlQueryRuntime.ChangeTypeXsltArgument(XmlQueryType xmlType, Object value, Type destinationType)
    at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
    at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

    I know it probably simple but. unfortunately I'm even simpler.... help please for a version that works in 4.11.8

Please Sign in or register to post replies

Write your reply to:

Draft