Hi all.
I am using a 3rd party ActiveX control to upload files to the web server
using the multipart/form-data format (described in RFC 1867). In regular
ASP, I have to use another 3rd party component, such as AspUpload, to
capture the files. In .NET, we have PostedFile, but I can' figure out how to
use it in this scenario.
There are no <INPUT TYPE="FILE" RUNAT="Server"> items to work with, nor are
there any <form>'s. All I have is a multipart/form-data stream, and the file
items are named FILE001, FILE002, etc. (there can be more than one). If I
handle this post from a Page_Load( Object sender, EventArgs e) function, how
to do I get those file items to be represented by PostedFile objects?
Thanks in advance.
-- Abe 2 2345
look at the HttpRequest.Files collection.
note: asp.net loads the files into memory, so you may have to bump up the
workersize and maxrequestlength.
-- bruce (sqlwork.com)
"Abe Simpson" <ab*@simpson.com> wrote in message
news:e6***************@tk2msftngp13.phx.gbl... Hi all.
I am using a 3rd party ActiveX control to upload files to the web server using the multipart/form-data format (described in RFC 1867). In regular ASP, I have to use another 3rd party component, such as AspUpload, to capture the files. In .NET, we have PostedFile, but I can' figure out how to use it in this scenario.
There are no <INPUT TYPE="FILE" RUNAT="Server"> items to work with, nor are there any <form>'s. All I have is a multipart/form-data stream, and the file items are named FILE001, FILE002, etc. (there can be more than one). If I handle this post from a Page_Load( Object sender, EventArgs e) function, how to do I get those file items to be represented by PostedFile objects?
Thanks in advance.
-- Abe
Thanks Bruce, that worked great.
-- Abe
"Bruce Barker" <br******************@safeco.com> wrote in message
news:OP***************@TK2MSFTNGP14.phx.gbl... look at the HttpRequest.Files collection.
note: asp.net loads the files into memory, so you may have to bump up the workersize and maxrequestlength.
-- bruce (sqlwork.com) "Abe Simpson" <ab*@simpson.com> wrote in message news:e6***************@tk2msftngp13.phx.gbl... Hi all.
I am using a 3rd party ActiveX control to upload files to the web server using the multipart/form-data format (described in RFC 1867). In regular ASP, I have to use another 3rd party component, such as AspUpload, to capture the files. In .NET, we have PostedFile, but I can' figure out how to use it in this scenario.
There are no <INPUT TYPE="FILE" RUNAT="Server"> items to work with, nor are there any <form>'s. All I have is a multipart/form-data stream, and the file items are named FILE001, FILE002, etc. (there can be more than one). If I handle this post from a Page_Load( Object sender, EventArgs e) function, how to do I get those file items to be represented by PostedFile objects?
Thanks in advance.
-- Abe
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tom Meuzelaar |
last post by:
Hello:
I'm using VB6 in VS enterprise. I'd like to place an HTML form inside
a VB container, have a user fill out the form information, click a
submit button, and then have the program capture...
|
by: Mustafa |
last post by:
dear sir
In my vb.net window application i have the MDI form MainMDI and child form form1 adn module as MainModule
In my MainMDI Parent form i have one toolbar i.e. tbraction. I am trying to show...
|
by: John Fereira |
last post by:
So, one of the limitations of multipart-form handling is that when an <input
type="file" ..> tag is used it will bring up a window which allows a user to
select a file for upload but won't allow...
|
by: CS Wong |
last post by:
Hi,
I have a page form where form elements are created dynamically using
Javascript instead of programatically at the code-behind level. I have
problems accessing the dynamically-created...
|
by: bwalke |
last post by:
Help Needed Please!!! With a VB.NET web application, I am trying to
save pictures and files to a directory on the web server. However, the
web server is not grabbing the Posted Files. For...
|
by: vips |
last post by:
I am using asp.net (VB)
for uploading the files on my server I am using
input type file (runat=server)
my code is
If ( FileProductImage.PostedFile.ContentLength > 0 ) Then
strurl =...
|
by: tmaster |
last post by:
Within a class, can I create a property that is a listview? Here's what I
tried, but it doesn't seem to work:
'------------ create property to give the second form access to the first
form's...
|
by: Jgold7 |
last post by:
Don't know if this is in the right group, but here goes:
I am working with a website that I am selecting files to be uploaded on one page (ex. UploadAttachment.aspx) and I need to retrieve those...
|
by: Darrel |
last post by:
I'm grabbing a file from a file upload form field. This is a
'system.web.httppostedfile'
I would like to modify the image (Cropping/scaling) using
system.drawing.image.
Is there anyway to go...
|
by: daokfella |
last post by:
I have a web usercontrol on which is a Webcontrols.FileUpload control.
I expose the PostedFile property as a readonly property of the
usercontrol. That way, a page has access to it.
However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |