IHttpHandlerFactory and file upload

  • Thread starter Thread starter Steven Voordijk
  • Start date Start date
S

Steven Voordijk

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
 
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.
 
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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top