473,840 Members | 1,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 InputRequestStr eam. I am not able to
find a solution for this problem.

Regards,
Tajeshwar
Nov 18 '05 #1
6 1540
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********@gra pecity.com> wrote in message
news:##******** ******@TK2MSFTN GP09.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 InputRequestStr eam. 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********@gra pecity.com> wrote in message
news:##******** ******@TK2MSFTN GP09.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 InputRequestStr eam. I am not able to
find a solution for this problem.

Regards,
Tajeshwar

Nov 18 '05 #3
Hi tajeshwar:

Have you tried changing the maxRequestLengt h 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********@gra pecity.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 InputRequestStr eam. 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********@gra pecity.com> a écrit dans le message de
news:%2******** **********@TK2M SFTNGP09.phx.gb l...
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 InputRequestStr eam. 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******@takem pis.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 InputRequestStr eam. 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
2516
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 the site, and then i have to select the file to upload.. i used sendkeys.. and i worked perfect.. BUT ... the computer must be locked for security ( obviusly ) reazons.. so..i think this probable solutions to unlock the computer and run the...
6
1780
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 ASP.NET and C# and need the expertese of individuals with more experience in these languages than I have. I may be completely off target as I thought this up very early in the morning. Here's the process as I see it: 1. InfoPath saves out the...
13
4332
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 that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I cleanup files that were uploaded -- but obviously left stranded when the users aborted/gave up writting...
5
3117
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 images (just as you would with MS Word) and it works beautifully. The problem is that when you include an image with the rich text editor, the image path is the local path on the client. I have written a method that examines the text for <img> tags,...
15
4786
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 button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
0
9856
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10598
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10657
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9436
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7836
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5684
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4071
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3136
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.