什么意思?accept应等于什么值?我试了几种情况还是不行啊

解决方案 »

  1.   

    我用jspsmartupload上传文件,那我怎样在不使用该控件就能上传指定文件呢?
      

  2.   

    好象不可以的。file控件的value属性是只读的,不可写。好像没有办法了。
      

  3.   

    File只具有可读性,无法初始化!
      

  4.   

    由于安全问题~FILE里是不可以设置初始值的~
      

  5.   

    sorry,file框不能赋值
    这是input的所以属性
    <!ENTITY % InputType
      "(TEXT | PASSWORD | CHECKBOX |
        RADIO | SUBMIT | RESET |
        FILE | HIDDEN | IMAGE | BUTTON)"
       ><!-- attribute name required for all but submit and reset -->
    <!ELEMENT INPUT - O EMPTY              -- form control -->
    <!ATTLIST INPUT
      %attrs;                              -- %coreattrs, %i18n, %events --
      type        %InputType;    TEXT      -- what kind of widget is needed --
      name        CDATA          #IMPLIED  -- submit as part of form --
      value       CDATA          #IMPLIED  -- Specify for radio buttons and checkboxes --
      checked     (checked)      #IMPLIED  -- for radio buttons and check boxes --
      disabled    (disabled)     #IMPLIED  -- unavailable in this context --
      readonly    (readonly)     #IMPLIED  -- for text and passwd --
      size        CDATA          #IMPLIED  -- specific to each type of field --
      maxlength   NUMBER         #IMPLIED  -- max chars for text fields --
      src         %URI;          #IMPLIED  -- for fields with images --
      alt         CDATA          #IMPLIED  -- short description --
      usemap      %URI;          #IMPLIED  -- use client-side image map --
      ismap       (ismap)        #IMPLIED  -- use server-side image map --
      tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
      accesskey   %Character;    #IMPLIED  -- accessibility key character --
      onfocus     %Script;       #IMPLIED  -- the element got the focus --
      onblur      %Script;       #IMPLIED  -- the element lost the focus --
      onselect    %Script;       #IMPLIED  -- some text was selected --
      onchange    %Script;       #IMPLIED  -- the element value was changed --
      accept      %ContentTypes; #IMPLIED  -- list of MIME types for file upload --
      >