Why asp.net create 0kb file on file1.postedfile.saveas.

A

Alex Pet

Hi,

I have a very strange situation here. I have an aspx page through
which I upoload image file in a folder. I can upload file first time
successfully. when second time I try to upload same file, it asks me
for overwrite or not? (I wrote code for that). If user choose yes, I
delete the file (that is done successfully). and then again execution
comes to the same point file1.postedfile.saveas(filenamewithpath).
this time asp.net create 0kb file. first time it's good >0kb file.

Could anyone help me.

Thanks

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top