Fire Hand
Fire Hand

Reputation: 26416

Assign full file path of FileUpload in textbox control back to FileUpload on postback

I have a FileUpload control in an UpdatePanel and when user select a file, the full file path will will be stored in a hiddenfield, and during postback, i would like to assign the full file path in the hiddenfield back to the FileUpload control textbox, possible to achieve that?

Upvotes: 0

Views: 2740

Answers (1)

Jarrett Widman
Jarrett Widman

Reputation: 6439

That is not possible because you cannot assign a file path to the FileUpload control. Browsers don't allow that because it would be a security risk.

Upvotes: 1

Related Questions