

The progress bar indicates to percentage of upload progressĤ. The application reads the files, displays them in a list and submits to ASP.NET Web APIģ. User starts a WPF client application and drags and drops a number of files to it.Ģ.

The client will use the new HttpClient and it’s client-side DelegatingHandlers.ġ. The important thing, is that we will use the *exact* same Web API upload controller as before, meaning the same controller will be handling uploads from the browser and from the client (WPF) application.

Today I will continue with the same topic, but instead, let’s build a WPF application to which you can drag and drop files, and they’ll get uploaded to ASP.NET Web API. String sourcePath = Choose a destination for the copied files.A while ago, I wrote a post on uploading files to ASP.NET Web API by dragging and dropping them to the browser. you won't have time to see the progress dialog box. Specify the path to a folder that you want to copy. The following using directive requires a project reference to Microsoft.VisualBasic. This code also provides a standard dialog box that shows the estimated amount of time remaining before the operation finishes. The following code copies the directory that sourcePath specifies into the directory that destinationPath specifies. In the list of names, select the Microsoft.VisualBasic check box, and then choose the OK button to close the dialog box. In the Assemblies area, choose Framework if it isn’t already chosen. The Reference Manager dialog box appears. On the menu bar, choose Project, Add Reference. For more information, see Personalizing the IDE. The Visual Studio edition that you have and the settings that you use determine these elements. Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions.
