Copied to clipboard

Flag this post as spam?

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


  • Barbacan 29 posts 79 karma points
    Jul 21, 2014 @ 22:34
    Barbacan
    0

    Looping thru file uploaded with DAMP

    Hi, my documentType have a property set as "uploadAttachments" which refers to DAMP multipicker. I've been able to attach three pdf files and now I would list into the page:

        if (@Model.HasValue("umbracoFile"))            
        {
            <br />
            <h3>Allegati</h3>
            <div class="allegati">
                <ul>   
                @foreach (var attachment in @Model.umbracoFile)
                {
                    dynamic media = Model.MediaById(attachment);                   
                }           
                </ul>
            </div>   
            <br class="clear" />
        }

    the code above seems ok as I can print out three rows but I cannot get the properties of each files (es: umbracoBytes). Any hints? I'm using Umbraco 6.2.1 and DAMP 2.8

Please Sign in or register to post replies

Write your reply to:

Draft