This project is read-only.

BITS Upload from ASP.NET Application

Sep 15, 2011 at 1:31 PM
Edited Sep 15, 2011 at 1:32 PM

How do I upload files using BITS from an ASP.NET application? because when you add a file to a BITS job

Job.Files.Add("destinationURL", "localFile"); the "localfile" gonna take the file where the aspx code is running i.e. Server and eventually get an error "file not found". This happens because the code is running in the context of server and you are going to upload a file from browser. 

I am just wondering if BITS has any option to take browser's file system (local system) and creates a stream from client to server and thereby server(aspx code) uploads the file to destination location??

Oct 6, 2011 at 6:48 AM

to allow uploads you need to configure your IIS for BITS uploads, see

I don't think your idea will work from server side to "download" files from a client location.