DialogFilter example that works?

Last post 12-02-2010, 9:57 AM by Eric. 4 replies.
Sort Posts: Previous Next
  •  04-24-2010, 4:11 PM 60376

    DialogFilter example that works?

    .NET 3.5
    Try as I might, I cannot get the dialogfilter to function properly.
     
           <CuteWebUI:Uploader DialogFilter="PDF Files(*.PDF)|*.PDF"   runat="server" ID="Uploader1" InsertText="Upload Multiple Files (Max 10M)"
                            MultipleFilesUpload="true" OnFileUploaded="Uploader_FileUploaded" >
                            <ValidateOption   AllowedFileExtensions="pdf, xls, doc, tif" MaxSizeKB="10240" />
                         
                        </CuteWebUI:Uploader>
     
    Does the Multiple File Option cancel this out? Incorrect uploads ARE blocked by the validator, but it would be nicer to do it through the UI., yes?
    I have also tried specifying this in code as well , but to no avail.
     
    Ideas?
     
    Filed under:
  •  04-26-2010, 11:14 AM 60407 in reply to 60376

    Re: DialogFilter example that works?

    Dear mbirchem,
     
    I have tested the following code, it works, please refer to it
     
      <CuteWebUI:Uploader runat="server" ID="Uploader1" InsertText="Upload"
                    OnFileUploaded="Uploader_FileUploaded"
                    onuploadcompleted="Uploader1_UploadCompleted"
                    DialogFilter="Images (pdf/xls/doc/tif)|*.pdf;*.xls;*.doc;*.tif|All files (*.*)|*.*">
                    <ValidateOption  MaxSizeKB="100" />
                </CuteWebUI:Uploader>
     
    Regards,
    Eric
  •  04-26-2010, 10:55 PM 60434 in reply to 60376

    Re: DialogFilter example that works?

    Hi,
     
    If your browser do not has Flash/Silverlight, the uploader will use <input type=file /> for it, which do not support dialog filter.

    Regards,
    Terry
     
  •  12-01-2010, 8:22 AM 65216 in reply to 60407

    Re: DialogFilter example that works?

    Eric,
     
    If the UploadType is set to IFrame, then the DialogFilter value is ignored and the default filter is used. Can this be fixed?
     
    Thanks, Len
    Filed under:
  •  12-02-2010, 9:57 AM 65241 in reply to 65216

    Re: DialogFilter example that works?

    Dear Len,
     
    Please refer to terry's answer, "<input type=file />" doesn't support  dialog filter, we cannot change it.
     
    Thank you for asking
View as RSS news feed in XML