HTTP POSTed files automatically uploaded to root directory

Posted by Baddie on Stack Overflow See other posts from Stack Overflow or by Baddie
Published on 2010-06-14T18:59:21Z Indexed on 2010/06/14 19:02 UTC
Read the original article Hit count: 241

I just inherited an ASP.NET WebForms web application that I was tasked with refactoring.

One of the features is a file upload and while debugging I noticed that as soon as a file is posted to a certain page/handler, it is automatically uploaded to the root directory of the application. The file is then moved to the proper location.

I can't seem to figure out whats causing this automatic upload of the file. Is there something I'am overlooking in ASP.NET WebForms that allows this to happen? Is it an IIS configuration or something?

© Stack Overflow or respective owner

Related posts about fileupload

Related posts about asp.net-webforms