Upload image


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?

You mean upload an image using a web form?

CGI::Simple ?

Also, have you got the form enc-type set up correctly?
You need

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/association-of-controls-and-forms.html#attr-fs-enctype.