Assuming you are using ASP.NET, you'll need to put an entry into your Web.Config file for the directory you are uploading to allow anonymous access.
You'll find alot more about this at http://msdn.microsoft.com