Copied to clipboard

Flag this post as spam?

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


  • anjaly 3 posts 23 karma points
    Oct 26, 2013 @ 08:52
    anjaly
    0

    Iterating multiple document files

    In my Mvc Umbraco v.6.1.6 project i need to show multiple Video files.I used Digibiz Advanced Media Picker package,Now in my umbraco content section i could choose multiple videos.In oreder to view those uploaded file, i used following codes

    @inherits umbraco.MacroEngines.DynamicNodeContext
    
    @using DigibizAdvancedMediaPicker;
    
    @{   dynamic file;
    file =Model.dampFile.mediaItem.File;
    
    <div>
        @foreach(dynamic d in Model.dampFile)
        {
    <h3 style="margin-top: 20px;">Razor DAMP file sample</h3>
         <p>Download: <a href="@file.umbracoFile"target="_blank">@file.nodeName</a></p>
       <iframe src="@file.umbracoFile"></iframe>
        }
         </div>     
    }
    

    Now the problem is its error free only for single file and getting error while choosing multiple videos,i have done the necessary settings in data type for the file format and multiple upload.

    What I want the script to do is showing multiple videos with DAMP File?

    Thanks in Advance

    Anjaly

Please Sign in or register to post replies

Write your reply to:

Draft