SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: upload image

  1. #1
    SitePoint Zealot
    Join Date
    Jan 2010
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    upload image

    Hi


    Sorry, I'm new in this language and i want to upload image How can I upload a image to the database, i used perl file and tmpl file ,any help?

  2. #2
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,280
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    You mean upload an image using a web form?

    CGI::Simple ?

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, have you got the form enc-type set up correctly?
    You need
    Code:
    The default value for this attribute is "application/x-www-form-urlencoded". The value "multipart/form-data" should be used in combination with the INPUT element, type="file"
    from http://www.w3.org/TR/html4/interact/forms.html (if you are using HTML-4 style forms)
    The encoding type doesn't change in HTML 5 http://www.w3.org/TR/html5/associati...ttr-fs-enctype.


Bookmarks

Posting Permissions

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