File Upload Control

  • Thread starter Thread starter Jerry Camel
  • Start date Start date
J

Jerry Camel

It seems there is no way for the file upload control to retain its value
after a post back. I have a fom with several buttons and if they populate
the file and then click any button on the form, they lose the file name -
have to re-enter it. Is there a way to make the control behave as if it has
ViewState enabled? Thanks.

Jerry
 
I can understand the risk. Is there any other way to allow a user to upload
a file? This will be an internal application and the powers that be don't
like that part of the interface... Suggestions?

Jerry


Rajiv R said:
Hi Jerry,

This is not possible. If this becomes possible, it will be security issue/risk.

A pages/websites can then pull files from the client machine which his
consent. I can default a fileupload control to say C:\my
documents\mypersonaldata.txt and write script to post the form onload! The
result is that the site is able to access a file in the client system
without permission. It is for this reason that you can default a value in a
fileupload control or retain it after postback.
 
Back
Top