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 () {
            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;

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

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

| improve this answer | |

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.