473,387 Members | 1,495 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,387 software developers and data experts.

Capture actual fileupload

I want to use an ordinary HREF situation to a fake filename on our server.
To let IIS and client handle the filetype like zip by itself i don't need a
generic handler.

But to prevent unautorized access i would *still* like to stream the file
from a *different* location.

I'm aware of protected folders (using formsauthentication) and such.

At this time i was messing with global.asax but i can only rewrite the path.
That's not the entire idea, i also would like to stream the file from a
different location WITHOUT 'manually' providing headers for that specific
filetype.

Is that possible?

PS, i'm thinking of logging the download anyway this way, i also tested a
httpmodule, works similar of course.


Jun 23 '06 #1
4 952
See if this helps..

http://www.netomatix.com/development...eDownload.aspx

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:44**********************@text.nova.planet.nl. ..
I want to use an ordinary HREF situation to a fake filename on our server.
To let IIS and client handle the filetype like zip by itself i don't need
a generic handler.

But to prevent unautorized access i would *still* like to stream the file
from a *different* location.

I'm aware of protected folders (using formsauthentication) and such.

At this time i was messing with global.asax but i can only rewrite the
path.
That's not the entire idea, i also would like to stream the file from a
different location WITHOUT 'manually' providing headers for that specific
filetype.

Is that possible?

PS, i'm thinking of logging the download anyway this way, i also tested a
httpmodule, works similar of course.

Jun 23 '06 #2
It requires to set the header stuff, something i would like to try to avoid
:)

Like:
ctx.Response.ContentType = "application/zip";
"Winista" <wi*****@gmail.com> schreef in bericht
news:en**************@TK2MSFTNGP05.phx.gbl...
See if this helps..

http://www.netomatix.com/development...eDownload.aspx

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:44**********************@text.nova.planet.nl. ..
I want to use an ordinary HREF situation to a fake filename on our server.
To let IIS and client handle the filetype like zip by itself i don't need
a generic handler.

But to prevent unautorized access i would *still* like to stream the file
from a *different* location.

I'm aware of protected folders (using formsauthentication) and such.

At this time i was messing with global.asax but i can only rewrite the
path.
That's not the entire idea, i also would like to stream the file from a
different location WITHOUT 'manually' providing headers for that specific
filetype.

Is that possible?

PS, i'm thinking of logging the download anyway this way, i also tested a
httpmodule, works similar of course.


Jun 23 '06 #3
Iow, i want to fool iis to stream the file from a different location on the
drive as was requested in the URL.
And thus no need for modifying any header per se.
"Winista" <wi*****@gmail.com> schreef in bericht
news:en**************@TK2MSFTNGP05.phx.gbl...
See if this helps..

http://www.netomatix.com/development...eDownload.aspx

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:44**********************@text.nova.planet.nl. ..
I want to use an ordinary HREF situation to a fake filename on our server.
To let IIS and client handle the filetype like zip by itself i don't need
a generic handler.

But to prevent unautorized access i would *still* like to stream the file
from a *different* location.

I'm aware of protected folders (using formsauthentication) and such.

At this time i was messing with global.asax but i can only rewrite the
path.
That's not the entire idea, i also would like to stream the file from a
different location WITHOUT 'manually' providing headers for that specific
filetype.

Is that possible?

PS, i'm thinking of logging the download anyway this way, i also tested a
httpmodule, works similar of course.


Jun 23 '06 #4
you need to write an iis filter. until the next release of IIS, these must
be written in C/C++, but are pretty simple to write. url rewriting is a
pretty common sample.

-- bruce (sqlwork.com)
"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:44**********************@text.nova.planet.nl. ..
I want to use an ordinary HREF situation to a fake filename on our server.
To let IIS and client handle the filetype like zip by itself i don't need
a generic handler.

But to prevent unautorized access i would *still* like to stream the file
from a *different* location.

I'm aware of protected folders (using formsauthentication) and such.

At this time i was messing with global.asax but i can only rewrite the
path.
That's not the entire idea, i also would like to stream the file from a
different location WITHOUT 'manually' providing headers for that specific
filetype.

Is that possible?

PS, i'm thinking of logging the download anyway this way, i also tested a
httpmodule, works similar of course.

Jun 23 '06 #5

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

Similar topics

2
by: Islamegy® | last post by:
I'm use FormView for editing a photo gallery... I add FileUpload control to upload images to the Gallery. I'm binding my Formview to objectdatasource i tried upload images onItemInserting &...
1
by: Marko Vuksanovic | last post by:
I am trying to implement an upload progress indicator using atlas, using the following workaround: http://forums.asp.net/thread/1321664.aspx This is the code in FileUpload.apsx file is as...
12
by: Phil Z. | last post by:
After migrating an ASP.NET 1.1 application to 2.0 we were getting "Cannot access a closed file" errors when uploading. I found a number of post on the subject and have since moved from using an...
0
by: Christian Schlemmer | last post by:
If my code will run into the filesize-limit condition, the INSERT-statement will be executed. is there a way to avoid that? Protected Sub DetailsView1_RowInserting(ByVal sender As Object,...
4
by: Dave | last post by:
If you had a FileUpload control inside of a FormView...how would you use FindControl to access the FileUpload properties? Let me just say that...
3
by: rn5a | last post by:
The ASPX FileUpload control displays a TextBox along with a 'Browse...' Button. Setting the different properties of this control just reflects the changes in the TextBox but not the Button. For...
1
by: nicknack | last post by:
Hello. I would like to give my user the option to browse his files (like the simple fileUpload control do) and after selecting the file (and when the fileUpload control hold in his text box the...
6
by: Chris | last post by:
I want do my insert to a database using a formview bound to an objectdatasource. I also want to upload a file. I'm quite new to and this is just test code but Is there any way I can pass the file...
5
by: =?Utf-8?B?QmVydA==?= | last post by:
Hi How can you set the filename property in the asp:fileupload control? How can you persist the value of the chosen filename between postbacks? thanks B
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a gridview with 2 columns. One column is a BoundColumn to a part number (string). One column is an ItemTemplate with a FileUpload control. There can be multiple rows (i.e. part numbers)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
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$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.