Re: Change MultipleFilesUpload on-the-fly

  •  06-30-2011, 9:35 AM

    Re: Change MultipleFilesUpload on-the-fly

    Now, I have the opposite problem... when user needs to upload multiple files, in the
    OnBrowse event I change
     
    this.internalobject.MultipleFilesUpload = true;
     
     
    And now the dialog won't allow the user to select multiple files.... see event code below
    to show what I'm trying to do...
     
    function CuteWebUI_AjaxUploader_OnBrowse()
    {
        if (_ProjectAttachmentId > 0)
        {
            // We are replacing a single attachment, so only allow one to be selected for upload
            this.internalobject.MultipleFilesUpload = false;
        }
        else
        {
            // We are uploading new attachments, so allow as many as they want
            this.internalobject.MultipleFilesUpload = true;
        }
    }
     
View Complete Thread