+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Can not find the zip file upload in the Images & Document Module

Can not find the zip file upload in the Images & Document Module

9 posts, 0 answered
  1. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    04 Nov 2009
    Link to this post
    Hi all,

      I just upgraded my site from 3.6 to 3.7 community edition last month, and just notice the upload zip file is not available in the Images & Document module.    I believe this is a setting in the web.config file?    How do I get the upload zip files option back for uploading a new photo gallery?

    Thanks,
    David
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    04 Nov 2009
    Link to this post
    Hello David ,

    This functionality wasn't removed from the latest release. Could you please confirm that you do not see the option in your Images and Documents module? Please check the screenshot.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    06 Nov 2009
    Link to this post
    Hi Georgi,

       I just confirm I do not see that option.  I look at html markup for the page where the Zip options would be shown and notice zipFileDiv has been asign a class called hidden.

    <div id="zipFileDiv" class="hidden">  
    <label id="ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl01_ctl00_ctl00_ctl00_Label2" class="zipLabel" for="ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl01_ctl00_ctl00_ctl00_archiveUpload">Select a zip file</label> 
    <div id="ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl01_ctl00_ctl00_ctl00_archiveUpload" class="RadUpload RadUpload_Sitefinity ">  
    </div> 
    <div class="clear"></div> 
    <class="allowed">  
    </p> 
    <class="button_area">  
    </p> 
    </div> 

      I guess this option is still there just hidden somehow within SiteFinity.  I think I will add override the hidden css by setting zipFileDiv to Display inline or something.

    This site is hosted in a Medium Trust Level with Mosso, not sure if this would cause the problem. 

    David
  4. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    06 Nov 2009
    Link to this post
    I added display:block !important; to id zipFileDiv to show the zip option. I get the follow in Red when I attempt to upload.
    {0} is editing this content right now!!

    Thanks,
    David
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Nov 2009
    Link to this post
    Hi David ,

    Please make sure that your LibraryItemUpload file looks as shown below:

    <%@ Control Language="C#" %>
     
    <script type="text/javascript">
    function toggleDisplay(elementID, secondElId, displayNoneClass)
    {
        var child = document.getElementById(elementID);
        var secondItem = document.getElementById(secondElId);
         
        if (secondItem.className.indexOf(displayNoneClass) == 0)
            secondItem.className = secondItem.className.replace(displayNoneClass, '');
        else if (secondItem.className.indexOf(displayNoneClass) > 0)
            secondItem.className = secondItem.className.replace(' ' + displayNoneClass, '');
            
        if (child.className == '')
            child.className = displayNoneClass;
        else
            child.className += ' ' + displayNoneClass;
    }
     
    function changeMode(mode)
    {
        var hiddenField = document.getElementById('<%= serverInfo.ClientID %>');
        hiddenField.setAttribute("value", mode);
    }
     
    function clearModeFilesToUpload(mode)
    {
        var upload = null;
        if(mode == 'uploadSingle')
            upload = $find("<%= filesUpload.ClientID %>");
        else if(mode == 'uploadMultiple')
            upload = $find("<%= archiveUpload.ClientID %>");
             
        var fileInputs = upload.getFileInputs();
     
        for (var i=0; i<fileInputs.length; i++)
        {
           upload.clearFileInputAt(i);
        }
        disableUploadBtnValidation();
    }
     
    function onClientSubmitting(sender, eventArgs)
    {
     var eventTarget = document.getElementById('__EVENTTARGET');
     if (eventTarget.value == '<%= libraryList.UniqueID %>')
     {
       //Clear the file inputs
       var upload = $find("<%= filesUpload.ClientID %>");
       var fileInputs = upload.getFileInputs();
       for (var i=0; i<fileInputs.length; i++)
       {
         upload.clearFileInputAt(i);
       }
        
       //Clear the file inputs
       var upload = $find("<%= archiveUpload.ClientID %>");
       var fileInputs = upload.getFileInputs();
       for (var i=0; i<fileInputs.length; i++)
       {
         upload.clearFileInputAt(i);
       }
     }
    }
     
    </script>
     
    <div class="ToolsAll">
        <div class="backWrapp">
            <asp:HyperLink ID="cancelButton1" runat="server" CssClass="actions back"><asp:Literal ID="Literal1" runat="server" Text="<%$Resources:ItemUpload_CancelAndGoBack %>"></asp:Literal></asp:HyperLink>
        </div>
        <asp:PlaceHolder ID="fullWindow" runat="server"></asp:PlaceHolder>
        <div class="clear"><!-- --></div>
    </div>
     
    <div id="divWorkArea" runat="server" class="workArea">
        <telerik:MessageControl runat="server" ID="message">
            <ItemTemplate>
                <asp:Literal runat="server" ID="messageText"></asp:Literal>
            </ItemTemplate>
        </telerik:MessageControl>
        <asp:Panel runat="server" ID="repeatersDiv" Visible="false" CssClass="filesNotUploaded clearfix">
            <h3><asp:Literal ID="Literal2" runat="server" Text="<%$Resources:ItemUpload_FilesNotUploaded %>"></asp:Literal></h3>
            <asp:Repeater runat="server" ID="maxFileSize">
                <HeaderTemplate><ul></HeaderTemplate>
                <AlternatingItemTemplate><li><%#Eval("Key")%></li></AlternatingItemTemplate>
                <ItemTemplate><li><%#Eval("Key")%></li></ItemTemplate>
                <FooterTemplate></ul><asp:Literal ID="Literal3" runat="server" Text="<%$Resources:ItemUpload_MaxFileSizeRepeaterLabel %>" /></FooterTemplate>
            </asp:Repeater>
            <asp:Repeater runat="server" ID="maxLibrarySize">
                <HeaderTemplate><ul></HeaderTemplate>
                <AlternatingItemTemplate><li><%#Eval("Key")%></li></AlternatingItemTemplate>
                <ItemTemplate><li><%#Eval("Key")%></li></li></ItemTemplate>
                <FooterTemplate></ul><asp:Literal ID="Literal4" runat="server" Text="<%$Resources:ItemUpload_MaxLibrarySizeRepeaterLabel %>" /></FooterTemplate>
            </asp:Repeater>
                <asp:Repeater runat="server" ID="maxFilesPerLibrary">
                <HeaderTemplate><ul></HeaderTemplate>
                <AlternatingItemTemplate><li><%#Eval("Key")%></li></AlternatingItemTemplate>
                <ItemTemplate><li><%#Eval("Key")%></li></ItemTemplate>
                <FooterTemplate></ul><asp:Literal ID="Literal5" runat="server" Text="<%$Resources:ItemUpload_MaxFilesPerLibraryRepeaterLabel %>" /></FooterTemplate>
            </asp:Repeater>
            <asp:Repeater runat="server" ID="invalidExtension">
                <HeaderTemplate><ul></HeaderTemplate>
                <AlternatingItemTemplate><li><%#Eval("Key")%></li></AlternatingItemTemplate>
                <ItemTemplate><li><%# Eval("Key")%></li></ItemTemplate>
                <FooterTemplate></ul><asp:Literal ID="Literal6" runat="server" Text="<%$Resources:ItemUpload_InvalidExtensionRepeaterLabel %>" /></FooterTemplate>
            </asp:Repeater>
            <asp:Repeater runat="server" ID="unknownReason">
                <HeaderTemplate><ul></HeaderTemplate>
                <AlternatingItemTemplate><li><%#Eval("Key")%></li></AlternatingItemTemplate>
                <ItemTemplate><li><%#Eval("Key")%></li></ItemTemplate>
            <FooterTemplate>
                </ul>
                <asp:Literal ID="Literal7" runat="server" Text="<%$Resources:ItemUpload_UnknownReasonRepeaterLabel %>" />
            </FooterTemplate>
            </asp:Repeater>
            <asp:Repeater runat="server" ID="notBrowseableImages">
                <HeaderTemplate><ul></HeaderTemplate>
                <AlternatingItemTemplate><li><%#Eval("Key")%></li></AlternatingItemTemplate>
                <ItemTemplate><li><%#Eval("Key")%></li></ItemTemplate>
            <FooterTemplate>
                </ul>
                <asp:Literal ID="Literal8" runat="server" Text="<%$Resources:ItemUpload_NotBrowseableImages %>" />
            </FooterTemplate>
            </asp:Repeater>
            <p class="button_area">
                <asp:LinkButton CssClass="CmsButLeft okdark" runat="server" ID="proceedBtn"><strong class="CmsButRight dark"><asp:Literal ID="Literal9" runat="server" Text="<%$Resources:ItemUpload_ProceedAnyway %>"></asp:Literal></strong></asp:LinkButton>
                <span>
                    <asp:Literal ID="Literal10" runat="server" Text="<%$Resources:ItemUpload_Or %>"></asp:Literal>
                </span>
                <asp:LinkButton runat="server" ID="undoUpload" CssClass="cmscclcmd" Text="<%$Resources:ItemUpload_UndoUpload %>"></asp:LinkButton>
            </p>
        </asp:Panel>
        <div class="mainForm">
            <p class="mand">
                <asp:Literal ID="Literal11" runat="server" Text="<%$Resources:ItemUpload_Mandatory %>"></asp:Literal>
            </p>
            <h3>
                <asp:Literal ID="Literal12" runat="server" Text="<%$Resources:ItemUpload_WhereToUpload %>"></asp:Literal>
            </h3>
            <fieldset class="set">
                <ol class="setIn">
                    <li id="selectFromLibraryList">
                        <asp:Label ID="Label1" runat="server" AssociatedControlID="libraryList" Text="<%$Resources:ItemUpload_SelectLibrary %>"></asp:Label>
                        <telerik:OptgroupDropDownList ID="libraryList" runat="server"></telerik:OptgroupDropDownList>
                        <p class="createNewOption">
                            <asp:Literal ID="Literal13" runat="server" Text="<%$Resources:ItemUpload_Or %>"></asp:Literal>
                            <asp:HyperLink ID="createLibraryButton" runat="server" Text="<%$Resources:ItemUpload_CreateNewLibrary %>"></asp:HyperLink>
                        </p>
                    </li>
                </ol>                   
            </fieldset>
            <div class="bottom"><div><!-- --></div></div>
            <h3>
                <asp:Literal ID="Literal14" runat="server" Text="<%$Resources:ItemUpload_SelectFiles %>"></asp:Literal>
            </h3>
            <div class="set">
                <div class="setIn">
                    <telerik:RadProgressManager id="RadProgressManager1" runat="server" onclientsubmitting="onClientSubmitting" SuppressMissingHttpModuleError="true" />
                    <telerik:RadProgressArea runat="server" ID="progressArea" EnableEmbeddedSkins="false" Skin="Sitefinity"></telerik:RadProgressArea>
                    <div class="clear"><!-- --></div>
                    <div id="manyItemsDiv">
                        <telerik:RadUpload
                        OnClientFileSelected="enableUploadBtnValidation"
                        ID="filesUpload"
                        runat="server"
                        ControlObjectsVisibility="AddButton"
                        EnableEmbeddedSkins="false"
                        Skin="Sitefinity"
                         />
                        <div class="clear"><!-- --></div>
                        <asp:PlaceHolder runat="server" ID="uploadInfo">
                            <p class="allowed"><asp:Literal ID="Literal15" runat="server" Text="<%$Resources:ItemUpload_AllowedType %>"></asp:Literal>
                            <em><asp:Literal runat="server" ID="allowedExt"></asp:Literal></em><br />
                            <asp:Literal ID="Literal16" runat="server" Text="<%$Resources:ItemUpload_MaxSize %>"></asp:Literal> <strong><asp:Literal runat="server" ID="maxFileSize2"></asp:Literal></strong></p>
                        </asp:PlaceHolder>
                        <p id="uploadZipCommand" runat="server" class="button_area">
                            <asp:Literal ID="Literal17" runat="server" Text="Or, "></asp:Literal>
                            <a href="#" onclick="toggleDisplay('manyItemsDiv', 'zipFileDiv', 'hidden'); changeMode('uploadSingle'); clearModeFilesToUpload('uploadSingle');" class="switchUploadMoves"><asp:Literal ID="Literal18" runat="server" Text="Upload a zip file"></asp:Literal></a><asp:Literal ID="Literal19" runat="server" Text=" containing many files"></asp:Literal>
                        </p>
                    </div>
                    <div id="zipFileDiv" class="hidden">
                        <asp:Label ID="Label2" runat="server" AssociatedControlID="archiveUpload" Text="<%$Resources:ItemUpload_zipLabel %>" CssClass="zipLabel"></asp:Label>
                        <telerik:RadUpload
                        OnClientFileSelected="enableUploadBtnValidation"
                        EnableEmbeddedSkins="false"
                        Skin="Sitefinity"
                        ID="archiveUpload" 
                        runat="server"
                        ControlObjectsVisibility="None"
                        AllowedFileExtensions=".zip"
                        />
                        <div class="clear"><!-- --></div>
                        <asp:PlaceHolder runat="server" ID="uploadInfoZip">
                            <p class="allowed"><asp:Literal ID="Literal20" runat="server" Text="<%$Resources:ItemUpload_AllowedType %>"></asp:Literal> <asp:Literal runat="server" ID="allowedExtZip"></asp:Literal><br /><asp:Literal ID="Literal21" runat="server" Text="<%$Resources:ItemUpload_MaxSize %>"></asp:Literal> <asp:Literal runat="server" ID="maxFileSize2Zip"></asp:Literal></p>
                             
                        </asp:PlaceHolder>
                        <p class="button_area">
                            <asp:Literal ID="Literal22" runat="server" Text="Or, "></asp:Literal>
                            <a href="#" onclick="toggleDisplay('zipFileDiv', 'manyItemsDiv', 'hidden');changeMode('uploadMultiple'); clearModeFilesToUpload('uploadMultiple'); " class="switchUploadMoves"><asp:Literal ID="Literal23" runat="server" Text="Upload items separately"></asp:Literal></a>
                        </p>
                    </div>
                    <asp:HiddenField ID="serverInfo" Value="uploadMultiple" runat="server" />
                </div>
            </div>
            <div class="bottom"><div><!-- --></div></div>
             
            <p class="button_area bot" id="uploadBtnEnabled" style="display: none; ">
                <asp:LinkButton CssClass="CmsButLeft upldark" runat="server" ID="uploadButton"><strong class="CmsButRight dark"><asp:Literal ID="Literal24" runat="server" Text="<%$Resources:ItemUpload_Upload %>"></asp:Literal></strong></asp:LinkButton>
                <span id="separator1" runat="server">
                <asp:Literal ID="Literal25" runat="server" Text="<%$Resources:ItemUpload_Or %>"></asp:Literal>
                </span>
                <asp:HyperLink runat="server" ID="cancelButton2" CssClass="cmscclcmd" CausesValidation="false"><asp:Literal ID="Literal26" runat="server" Text="<%$Resources:ItemUpload_Cancel %>"></asp:Literal></asp:HyperLink>
            </p>
            <p class="button_area bot" id="uploadBtnDisabled">
                <span class="CmsButLeft upldark"><strong class="CmsButRight dark"><asp:Literal ID="Literal27" runat="server" Text="<%$Resources:ItemUpload_Upload %>" /></asp:Literal></strong></span>
                <span id="Span1" runat="server">
                    <asp:Literal ID="Literal28" runat="server" Text="<%$Resources:ItemUpload_Or %>"></asp:Literal>
                </span>
                <asp:HyperLink runat="server" ID="cancelButton3" CssClass="cmscclcmd" CausesValidation="false"><asp:Literal ID="Literal29" runat="server" Text="<%$Resources:ItemUpload_Cancel %>"></asp:Literal></asp:HyperLink>
            </p>
        </div>
         <script type="text/javascript">
                function enableUploadBtnValidation () {
                    if(document.getElementById("selectFromLibraryList").getElementsByTagName("select")[0].selectedIndex != 0) {
                        document.getElementById("uploadBtnEnabled").style.display = 'block';
                        document.getElementById("uploadBtnDisabled").style.display = 'none';
                    }
                }
                function disableUploadBtnValidation () {
                    if(document.getElementById("selectFromLibraryList").getElementsByTagName("select")[0].selectedIndex != 0) {
                        document.getElementById("uploadBtnEnabled").style.display = 'none';
                        document.getElementById("uploadBtnDisabled").style.display = 'block';
                    }
                }
                </script>
        <div class="info" id="divFaq" runat="server">
        <div class="infoBottom">
            <asp:Literal ID="Literal30" runat="server" Text="<%$Resources:UploadFAQ %>"></asp:Literal>
            <p class="hideAllFAQs">
                <a href="javascript:void(0)" onclick="javascript:Personalization.hideFaqSection('<%= divFaq.ClientID %>')">Hide FAQs everywhere</a>
            </p>
            </div>
        </div>
    </div>

    You can map this template as external resource from your ControlsConfig.xml

    <viewSettings hostType="Telerik.Libraries.WebControls.Admin.LibraryItemUpload`1[[Telerik.Libraries.WebControls.Admin.LibraryItemsView, Telerik.Libraries]]" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Libraries/LibraryItemUpload.ascx" />

    Let us know if the problem persists.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    09 Nov 2009
    Link to this post
    Which folder is LibraryItemUpload located in?  I did a search for it, and could not find it.  I am using 3.7 sp1.  

    I did check that function on my local dev server, and zip upload does appear.    I am wondering if Sitefinity does an some of check of the hosting enviroment to determine if it shows the option to upload the zip file.  This site is on Mosso.

    Thanks,
    David
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Nov 2009
    Link to this post
    Hi David ,

    It is an external template that you can download from Downloads section of your account. Then you can map the template as shown below and see whether you will see the upload button.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    10 Nov 2009
    Link to this post
    Hi Ivan,

       I just tried mapping the LibraryItemUpload.ascx control on my local server.  When I select Upload your first image I get the following error for line 62. 

    Parser Error Message: The resource object with key 'ItemUpload_CancelAndGoBack' was not found.

    Line 60: <div class="ToolsAll">  
    Line 61:     <div class="backWrapp">  
    Line 62:         <asp:HyperLink ID="cancelButton1" runat="server" CssClass="actions back"><asp:Literal ID="Literal1" runat="server" Text="<%$Resources:ItemUpload_CancelAndGoBack %>"></asp:Literal></asp:HyperLink> 
    Line 63:     </div> 
    Line 64:     <asp:PlaceHolder ID="fullWindow" runat="server"></asp:PlaceHolder> 


    I attempted to use the control form external templates in the download section.  It think I am missing a resource, I comment that line out, it just get another error from the next Resources.


    David
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Nov 2009
    Link to this post
    Hello David ,

    You need to add the resx files associated with this template. Please add the following folder as well - Sitefinity/Admin/ControlTemplates/Libraries/App_LocalResources.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
9 posts, 0 answered