RE: file upload multipart/form-data

"Cort Schaefer" <[email protected]>
Newsgroups gmane.comp.web.mavnet.user
Message-ID <[email protected]>
Sorry, finger slipped…

 

Then you can read from it like:

 

StreamReader reader = new StreamReader(file.InputStream, Encoding.ASCII);

 

In the code that I pulled this from, the user can upload a text file that is
then parsed in the controller and work done.

 

Hope that helps.

 

Cort

 

   _____  

From: Cort Schaefer [mailto:[email protected]] 
Sent: Wednesday, February 15, 2006 11:37 PM
To: '[email protected]'
Subject: RE: [Mavnet-user] file upload multipart/form-data

 

You can handle that directly in a controller using HttpPostedFile, as in:

 

HttpPostedFile file = Request.Files[0] as HttpPostedFile;

 

Then you can read from it like:

 

 

   _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew Rapp
Sent: Monday, February 13, 2006 7:44 AM
To: [email protected]
Subject: [Mavnet-user] file upload multipart/form-data

 

Is it possible to do file upload w/ Maverick, using <input type="file"
runat="server"> ?  If not what is the recommended solution?  Thanks

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.15.7/259 - Release Date: 2/13/2006


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.15.7/259 - Release Date: 2/13/2006



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.15.7/259 - Release Date: 2/13/2006
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.