How to upload a file from an Asp.Net site

Dec 29, 2011 at 3:38 PM

Hi!

I have successfully tested SharpBox in a console application to upload a file on my harddrive to dropbox.

Next step is to implement this in my Asp.Net website.
At the moment it is using the System,Web.UI.WebControls.FileUpload control to let the user upload a file to the webserver.

Am I supposed to use the stream part of fileUpload.FileContent and use it in some kind of SharpBox container object? *lost*

This is my SharpBox code after all token and security things are done:

var storage= new CloudStorage;
storage.Upload(file,path);
TIA