Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How to set file types for file upload

How to set file types for file upload

Scheduled Pinned Locked Moved Web Development
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Prajin
    wrote on last edited by
    #1

    Hi, I have a file upload control.I want to set its file types as only csv file.How can I do it Prajin

    M C 2 Replies Last reply
    0
    • P Prajin

      Hi, I have a file upload control.I want to set its file types as only csv file.How can I do it Prajin

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      AFAIK, you can't do that. maybe. you could try Flash or ActiveX components...

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

      1 Reply Last reply
      0
      • P Prajin

        Hi, I have a file upload control.I want to set its file types as only csv file.How can I do it Prajin

        C Offline
        C Offline
        Cfer83
        wrote on last edited by
        #3

        You can find a couple methods at the following Link. Basically you have a form, you have a file upload control, before you continue execution you check the postedfile filename's extension (i.e: Last 3 indices).

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups