From: Alexey Smirnov on
On Mar 24, 12:02 am, "Adam" <w...(a)officexpress.com> wrote:
> OMG, i feel so silly. To test the upload from the remote computer I created
> a couple of text files without any content.  Therefore, with my code
> checking content length, it didnt upload it as the content length was 0.
>
> Sorry people!. Thanks for your help though.
>
> "Adam" <w...(a)officexpress.com> wrote in message
>
> news:4ba80a99$0$8754$c3e8da3(a)news.astraweb.com...
>
>
>
> > Hi, I am trying to create a very basic file upload page, where the
> > uploaded file is placed into a folder on the server (but not in the web
> > path, i.e. c:\uploads and not c:\inetpub\wwwroot\uploads). On the IIS
> > server it works correctly, and uploads the files, but anonymous users when
> > they click on the upload button, it just refreshes the page and doesn't do
> > anything.  When it works on the IIS server, the page displays upload
> > successful, while from another workstation it just goes back to the upload
> > file comment and removes the selected file from the fileupload control.
>
> > Can anyone please provide any good resources or identify what security I
> > need to put on the c:\uploads folder and what setting (account) I should
> > set for the Application pool.
>
> > Thanks in advance.
> > Adam

Glad that it works now for you! You can extend your code and check the
size. Makes sense I think.