file upload

  • Thread starter Thread starter rom
  • Start date Start date
R

rom

hi,

I'm uploading a file using a simple <input type=file>, and
after every page refresh, the file uploads again! any
ideas?

Thanks.
 
Probably you mean pressing browser's Refresh button. Upon pressing this
button browser will always repeat the last post. I don't think you can
prevent it on client-side. On server side you can check the file name to
avoid repeating the action.

Eliyahu
 
I have done something related and mine doesn't UPLOAD again!
Whats ur code like POST it
 
Hi,

you can check for postback before saving file or, after saving file,
do a Response.Redirect to the same page. This will force the page to a
new reload, and the browser refresh wont do any postback thing...


Hope it helps,
Nelson R.
 
Back
Top