473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

File Post Control

Hi,

I am using file post control to upload a large file to web server. this
file can be very large(5-10 GB).
Now what this control do is that it will reject any such request because
of ASP.NET security features.
Now what I want to do is to handle this thing at HttpModule level. That
is see if the request is for uploading
a file. If so then I should be able to change the content-length
property in headers and make it small so that
the request shouldn't be rejected. Second I should be able to grab the
InputStream and write it into some file store
and keep on rejecting th eread portion from memory. Now in
multipart/form-encoded requests this is not possible.
Because I don't get anything for InputRequestStream. I am not able to
find a solution for this problem.

Regards,
Tajeshwar
Nov 18 '05 #1
6 1520
I hate to tell you this, but you are WAY off base. What on earth makes you
think that by changing the content-length property in a header you will make
the file smaller? If I tell you that I'm 25 years old, does that make me any
younger? This ain't magic, you know. It's technology. Looks the same to an
unwashed audience, but actually quite the opposite.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"tajeshwar" <ta********@grapecity.com> wrote in message
news:##**************@TK2MSFTNGP09.phx.gbl...
Hi,

I am using file post control to upload a large file to web server. this file can be very large(5-10 GB).
Now what this control do is that it will reject any such request because of ASP.NET security features.
Now what I want to do is to handle this thing at HttpModule level. That is see if the request is for uploading
a file. If so then I should be able to change the content-length
property in headers and make it small so that
the request shouldn't be rejected. Second I should be able to grab the
InputStream and write it into some file store
and keep on rejecting th eread portion from memory. Now in
multipart/form-encoded requests this is not possible.
Because I don't get anything for InputRequestStream. I am not able to
find a solution for this problem.

Regards,
Tajeshwar

Nov 18 '05 #2
Sorry about my over-reaction. It was just shock. Uploading 5-10 GB of data
to a server is NOT something you should do, with VERY few exceptions. Why
don't you put the data on a couple of CDs and FedEx it? It will get there
quicker.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"tajeshwar" <ta********@grapecity.com> wrote in message
news:##**************@TK2MSFTNGP09.phx.gbl...
Hi,

I am using file post control to upload a large file to web server. this file can be very large(5-10 GB).
Now what this control do is that it will reject any such request because of ASP.NET security features.
Now what I want to do is to handle this thing at HttpModule level. That is see if the request is for uploading
a file. If so then I should be able to change the content-length
property in headers and make it small so that
the request shouldn't be rejected. Second I should be able to grab the
InputStream and write it into some file store
and keep on rejecting th eread portion from memory. Now in
multipart/form-encoded requests this is not possible.
Because I don't get anything for InputRequestStream. I am not able to
find a solution for this problem.

Regards,
Tajeshwar

Nov 18 '05 #3
Hi tajeshwar:

Have you tried changing the maxRequestLength attribute of the
<httpRuntime> element in web.config? I don't believe modifying the
headers will circumvent the protection mechanism.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 28 Sep 2004 14:20:17 +0530, "tajeshwar"
<ta********@grapecity.com> wrote:
Hi,

I am using file post control to upload a large file to web server. this
file can be very large(5-10 GB).
Now what this control do is that it will reject any such request because
of ASP.NET security features.
Now what I want to do is to handle this thing at HttpModule level. That
is see if the request is for uploading
a file. If so then I should be able to change the content-length
property in headers and make it small so that
the request shouldn't be rejected. Second I should be able to grab the
InputStream and write it into some file store
and keep on rejecting th eread portion from memory. Now in
multipart/form-encoded requests this is not possible.
Because I don't get anything for InputRequestStream. I am not able to
find a solution for this problem.

Regards,
Tajeshwar


Nov 18 '05 #4
Also are those files uploaded by end users ???!!! If not I would consider to
change the arhcitecture if posisble. You could also transfer changes instead
of uploaidng the whole thing each time (or is this already just the changes
!!!).

Patrice

--

"tajeshwar" <ta********@grapecity.com> a écrit dans le message de
news:%2******************@TK2MSFTNGP09.phx.gbl...
Hi,

I am using file post control to upload a large file to web server. this file can be very large(5-10 GB).
Now what this control do is that it will reject any such request because of ASP.NET security features.
Now what I want to do is to handle this thing at HttpModule level. That is see if the request is for uploading
a file. If so then I should be able to change the content-length
property in headers and make it small so that
the request shouldn't be rejected. Second I should be able to grab the
InputStream and write it into some file store
and keep on rejecting th eread portion from memory. Now in
multipart/form-encoded requests this is not possible.
Because I don't get anything for InputRequestStream. I am not able to
find a solution for this problem.

Regards,
Tajeshwar

Nov 18 '05 #5
Oops, I read 5-10 MB when I first read the post and wondered what all
the excitement was about. 10GB is a bit much for HTTP...

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 28 Sep 2004 08:55:30 -0400, "Kevin Spencer"
<ks******@takempis.com> wrote:
Sorry about my over-reaction. It was just shock. Uploading 5-10 GB of data
to a server is NOT something you should do, with VERY few exceptions. Why
don't you put the data on a couple of CDs and FedEx it? It will get there
quicker.


Nov 18 '05 #6
I suspect you're going to need a heavy duty, resumable upload component for
that. Try here?

http://fileup.softartisans.com/fileup-147.aspx

"tajeshwar" wrote:
Hi,

I am using file post control to upload a large file to web server. this
file can be very large(5-10 GB).
Now what this control do is that it will reject any such request because
of ASP.NET security features.
Now what I want to do is to handle this thing at HttpModule level. That
is see if the request is for uploading
a file. If so then I should be able to change the content-length
property in headers and make it small so that
the request shouldn't be rejected. Second I should be able to grab the
InputStream and write it into some file store
and keep on rejecting th eread portion from memory. Now in
multipart/form-encoded requests this is not possible.
Because I don't get anything for InputRequestStream. I am not able to
find a solution for this problem.

Regards,
Tajeshwar

Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
6
by: Greg Collins [MVP] | last post by:
For background, please refer to my original thread: http://groups.google.com/groups?selm=efe5w7tYEHA.3112%40tk2msftngp13.phx.gbl I've thought of a potential way around the issue, but I'm new to...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
5
by: Grant Harmeyer | last post by:
I have an application that uses FreeTextBox 2.0 (http://www.freetextbox.com). FreeTextBox is a rich text editor that behaves similarly to MS Word. The FreeTextBox control has a button to insert...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
0
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
0
BarryA
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...
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.