File upload and page PostBack.

  • Thread starter Thread starter Pamela Chatterjee
  • Start date Start date
P

Pamela Chatterjee

In my project I am uploading file using File control. After browsing
file user needs to select other values from DropdownList to determine
uploading path. After selection in couple of drop down lists page
needs to postback. The problem is File input field becomes clear
after posting pack of the page. But I need to keep and display the
file name in the file field, which has been browsed initially. Can
anybody please help me about that?

Thanks for any help.

Pamela.
 
My guess would that because the file gets uploaded immediately upon post
back, if the field was to be repopulated with the path of the file, then the
file would continually be uploaded each time the page re-submits. If you
need to keep the path information, on postbacks, you might want not to
display the file upload form field and rather display a static label showing
the path.
 
Back
Top