FileUpload, How to set artibutes "accept"?

  1. #1

    FileUpload, How to set artibutes "accept"?

    Hi,

    I was wondering how to use this functionality in FileUpload

    <input type="file" accept="image/gif, image/jpeg" />
    how can i implement these features ...
    <ext:FileUploadField ID="ImageLocation1"  Icon="Images"  runat="server" >
    </ext:FileUploadField>
    Thank you,

    Regards
    Madan
  2. #2
    Hi Madan,

    To the best of my knowledge, the accept attribute is ignored by most browsers. I tested IE8, Chrome and Firefox, all of which ignored the attribute.

    Do you have a specific scenario/browser where this is required?

    You should validate file extensions and uploads server-side.
    Last edited by geoffrey.mcgill; Jul 21, 2010 at 3:05 AM.
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 1
    Last Post: Jun 26, 2012, 11:29 AM
  2. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  3. Replies: 4
    Last Post: Oct 11, 2011, 2:42 AM
  4. Replies: 2
    Last Post: Jun 26, 2011, 1:59 AM
  5. TriggerField only accept the icon "Clear"
    By yyyhxm1 in forum 1.x Help
    Replies: 1
    Last Post: Aug 13, 2010, 8:54 PM

Posting Permissions