Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Could you please tell me how to open a MultiUpload modal form, without using or displaying the single upload form?

<script language="javascript" type="text/javascript">
    $(function () {
        $().SPServices({
            operation: "GetList",
            listName: "Briefkasten",
            async: false,
            completefunc: function (xData, Status) {
                id = $(xData.responseXML).find("List").attr("ID");
            }
        });

        reference = "./_layouts/Upload.aspx?List=" + id + "&amp;RootFolder=";

        $('#UploadButton').click(function (event) {
            if ($.browser.msie) {
                NewItem2(event, reference);
                return false;
            }
        });
    });
</script> 

I have written this code for single upload. But I stuck on multi. I also tried to set the anchor for multi upload at the end of the reference, but no way, the NewItem2() isn´t working properly this way. Are there any suggs?

Thanks for all effort!

share|improve this question
    
I solved the problem on my onw ;-) –  Felix Zeidler Nov 12 '12 at 15:33
    
The NewItem2() is more or less the "SP.UI.ModalDialog.showModalDialog()" (or is based on it) so it´s easy after you´ve got this point ^^ –  Felix Zeidler Nov 12 '12 at 15:47
add comment

1 Answer

up vote 0 down vote accepted

Simply add the MultipleUpload=1 query string to the Url and it will be the multiple upload version.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.