2

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!

  • 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
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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