Purpose of Enctype attribute in Form tag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Velhari
    New Member
    • Sep 2006
    • 46

    Purpose of Enctype attribute in Form tag

    Hi all,
    Why we going for enctype “multipart/form-data” for uploading any file. Is there any reason please tell me... Please tell me about why we going for enctype attribute also

    Thanks
    Velmurugan.H
  • tbb9216
    New Member
    • Sep 2006
    • 16

    #2
    enctype tells the server recieving the form how to handle it. when you get into a lot of ajax you will start to really use this. also, when uploading files you have to set the enctype to multipart/form-data

    basically, if you are doing something that requires enctype to be set or changed, you know what you are doing with it.

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      Enctype (encoding type) specifies the media type of the underlying data.

      Ronald :cool:

      Comment

      Working...