Click to See Complete Forum and Search --> : ENCTYPE="multipart/form-data"
Intensity
02-08-2005, 06:05 PM
Hi, I have been trying to find a solution with no resolve. I want to have have the cabability to be able to upload an image with my Email Form. Is this possible? I am currently using a PERL script provided by my hosting services provider and it does not give an option to upload images with it.
How do I use ENCTYPE="multipart/form-data" and application/x-www-form-urlencoded combined? Is this to send both info and binary data?
buntine
02-08-2005, 07:14 PM
The upload component should provide an alternative way to collect data from the client. You should consult the documentation. You can only use one ENCTYPE.
Why did you post this in the Java forum?
Regards.
Intensity
02-08-2005, 07:23 PM
I have been on this since 11:00 am non-stop. I don't like not knowing how something works.
I have been reading in Java Forums about an upload.jsp with
FileOutputStream and other jibberish that I am trying to understand and these folks have ways of establishing a web folder and saving documents temporarily, similar to a cgi-bin.
I have attempted to figure out this soupermail (http://soupermail.sourceforge.net) which seems quite cabable if I had the knowledge of how CGI / PERL works.
Intensity
02-08-2005, 07:28 PM
Here are some examples.
JGuru (http://www.jguru.com/faq/view.jsp?EID=160)
Java.Sun (http://forum.java.sun.com/thread.jspa?threadID=329408&messageID=1341618)
Just has me more confused. :mad:
Khalid Ali
02-08-2005, 09:07 PM
if you are trying to upload files and binary data, you must use
ENCTYPE="multipart/form-data"
Intensity
02-08-2005, 10:23 PM
I guess the real question that I have is:
How do I set up the server side scripting? Java, JavaScript and CGI are currently out of my league.
buntine
02-08-2005, 10:37 PM
Well, your not going to be using both Java and CGI in the same script. This is not something you can just "do" by cutting and pasting code. Its best to get an understanding of the language itself before you attempt this.
Apache provide a free component for uploading files on Tomcat servers. It has sizable documentation. http://jakarta.apache.org/commons/fileupload/
Have you spent much time learning the relevant techonlogies? Or read the provided documentation?
Regards.
Intensity
02-08-2005, 10:48 PM
Thanks. I just wanted to get some feedback to ensure that I am not heading south.
I have a VB background!! lol. But that is like know how to Speak Latin and attempting to learn how to speak Spanish overnight.
Thanks for the feedback. Just wanted to see if there were any quick fixes. I need get myself in order and drink about 5 Redbulls and study this for about 20 hours straight.