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

IHttpHandlerFactory and file upload

I'm using the IHttpHandlerFactory to do URL rewriting and generate webpages.
One of those pages offers the possibility to upload a file with a <input
type="file"...tag.
When the user clicks the submit button, the file should be uploaded and
saved.
But because of the use of the IHttpHandlerFactory (I think...) the
Current.Request.Files.Count stays 0...
(and I can't "get my hands" on the file uploaded).

What code should I use to see if there's a file uploaded?

Thanks! Regards, Steven
Oct 30 '07 #1
2 1159
Hello Steven
But because of the use of the IHttpHandlerFactory (I think...) the
Current.Request.Files.Count stays 0...
(and I can't "get my hands" on the file uploaded).

What code should I use to see if there's a file uploaded?
What event are you wire up and using for access the request?
Maybe you choosen an event that fires befor the files are available.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
Oct 31 '07 #2
No event in particular, if the page is submitted,
I check the current.request.files.count in the class which
implements/handles the IHttpHandlerFactory (GetHandler).

"Peter Bucher [MVP]" <pe**********@aspnetzone.deschreef in bericht
news:BD**********************************@microsof t.com...
Hello Steven
>But because of the use of the IHttpHandlerFactory (I think...) the
Current.Request.Files.Count stays 0...
(and I can't "get my hands" on the file uploaded).

What code should I use to see if there's a file uploaded?
What event are you wire up and using for access the request?
Maybe you choosen an event that fires befor the files are available.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET

Oct 31 '07 #3

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

Similar topics

1
by: Bartosz Krzywicki | last post by:
I have the problem with Session object witch is null, when I implement IHttpHandlerFactory. Implementing IRequiresSessionState interface doesn't help. My code is like this: class MyController :...
3
by: Bartosz Krzywicki | last post by:
I have the problem with Session object witch is null, when I implement IHttpHandlerFactory. Implementing IRequiresSessionState interface doesn't help. My code is like this: class MyController :...
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...
4
by: AndyE | last post by:
ASP.Net experts : Fairly new to ASP.net, and I'm struggling to register a custom handler in the <httpHandlers> section of my application WebConfig file. At runtime I persistently get the 404 not...
0
by: Netveloper | last post by:
Hi, I'm playing around with url rewriting and I have come across a problem which I can't seem to get past. The general ide is to have a IHttpHandlerFactory class which checks the incoming...
3
by: Hope Paka | last post by:
I want to use my custom url extension instead of .aspx. I can achieve this by writing a custom handler that implements the IHttpHandlerFactory. In the GetHandler method of the IHttpHandlerFactory i...
5
by: John H Clark | last post by:
I am building an IHttpHandlerFactory to process all requests to folders in my site. When an attempt to access internal folders is detected the request is rerouted to an error page. All other...
0
by: Steve B. | last post by:
Hi, We have build a custom class that implement IHttpHandlerFactory in order to handle all request to a IIS web site. In IIS 6, we just added the aspnet_isapi.dll to the list of generic...
0
by: Jordan S. | last post by:
I'm just wondering if it's possible to have multiple HttpHandlerFactory classes active at once in an ASP.NET 3.5 app. In particular, I want for the "built-in" HttpHandlerFactory that ships with...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
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,...
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.