Article View: borland.public.jbuilder.java.api
Article #1034Re: Upload a file using JSP
From: Gillmer J. Derge [TeamB]
Date: Wed, 01 May 2002 13:50
Date: Wed, 01 May 2002 13:50
19 lines
1740 bytes
1740 bytes
"Nadav" <Nadav.Golombick@comverse.com> wrote in message news:3ccfcf6a$1_2@dnews... > I can't seem to read the file from the client side. After setting the "file" > input tag, I can't seem to see anything connected to the file except for the > file name on the next form You need to use a multipart form to upload a file with the file input type. This means your form tag needs the attribute ENCTYPE="multipart/form-data". You also need to do some special handling of the request. One class to do it can be found at http://www.servlets.com/cos/index.html (MultipartRequest). Searching the WWW for multipart/form-data will find plenty of additional information. -- Gillmer J. Derge [TeamB]
Technical Details
Message-ID:
<3ccff282$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3ccfbdbf_1@dnews> <3ccfc8ef_2@dnews> <3ccfcf6a$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,9ba28ba5b963e47b X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-05-01 06:51:09 PST From: "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com> Newsgroups: borland.public.jbuilder.java.api References: <3ccfbdbf_1@dnews> <3ccfc8ef_2@dnews> <3ccfcf6a$1_2@dnews> Subject: Re: Upload a file using JSP Date: Wed, 1 May 2002 09:50:15 -0400 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 66.67.129.227 Message-ID: <3ccff282$1_1@dnews> X-Trace: dnews 1020260994 66.67.129.227 (1 May 2002 06:49:54 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews