Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2004
    Location
    CAMBODIA
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    enctype in html form

    Hi,

    Some book say when we upload file to the database we should use "multipart/form-data" why not "application-x-www-form-urlencoded" ???

    Thanks for your help.
    -= Dweed-Ly =-

  • #2
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The media-type multipart/form-data follows the rules of all multipart
    MIME data streams as outlined in [RFC 2046]. In forms, there are a
    series of fields to be supplied by the user who fills out the form.
    Each field has a name. Within a given form, the names are unique.

    "multipart/form-data" contains a series of parts. Each part is
    expected to contain a content-disposition header [RFC 2183] where the
    disposition type is "form-data", and where the disposition contains
    an (additional) parameter of "name", where the value of that
    parameter is the original field name in the form.

    application-x-www-form-urlencoded is inefficient for LARGE file uploads, because it increases file size to urlencode every byte. This can double or triple the file size.

    More info:
    http://www.w3.org/TR/REC-html40/inte...html#h-17.13.4

  • #3
    New Coder
    Join Date
    Mar 2004
    Location
    CAMBODIA
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks
    -= Dweed-Ly =-


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •