A Better File Upload Control?

  • Thread starter Thread starter George Durzi
  • Start date Start date
G

George Durzi

Anyone know of a good file upload control? I don't like using the built in
one because it's unable to maintain state on a refresh.

Thanks!
 
It will involve a clientside control installation you realize?
Not many will allow this
 
Nope, didn't realize that ...

Have you found any clean way to make the file upload control maintain state?

My problem is I have a form with a few validators. Let's say my user
provides a file into the file upload control, but forgets another field, so
a requiredfieldvalidator fires.

Now the file upload control needs to be filled again ...
 
It isn't the Control per se, but the way that HTML and browsers work.
Browsers will not allow the value attribute of an "input type=file" form
field to be filled programmatically, as it would be a security hole that
would allow malicious web masters to design web sites that steal file system
content from clients.

I would suggest working with it, rather than trying to overcome it. Your
only other alternative is to use a client-side executable, such as an
ActiveX control, to do this.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
I agree ... The issue I'm having is that I have a webform with one of its
entry fields being a file upload.

I'm doing some server side validation, and when the page refreshes after
running that validation, the contents of my Upload control are erased.
Trying to find a way around that.
 
Back
Top