1

I have been looking all over the place but I'm having a hard time finding out how to upload a file to Dropbox from an Azure webjob. Is this even possible? I will be creating an excel file and a text document in my webjob that i will need to place in a certain Dropbox account (which i have access) folder.

NormTheThird
  • 177
  • 15
  • Can't you consume Dropbox API in your Webjob to upload a file? – Gaurav Mantri Nov 29 '16 at 03:07
  • I believe so, yes. Can i just use the api to upload files to an account and not actually put them on a physical drive? – NormTheThird Nov 29 '16 at 03:29
  • You would need to provide some context before I could answer that :). Please update your question and tell from where you're getting the data files in your webjob. Essentially more details are needed. – Gaurav Mantri Nov 29 '16 at 03:44

2 Answers2

2

According to your requirement, I assumed that you could follow the possible approaches below to achieve your purpose.

1.Call Dropbox API in your WebJob

You could leverage Dropbox.NET which is a portable Class Library for you to easily integrate Dropbox into your WebJob.

2. ApiHub extension for Azure WebJob

You could leverage Microsoft.Azure.WebJobs.Extensions.ApiHub which is a pre-release version for you to integrate Dropbox with WebJob. For more details, you could refer to Azure WebJobs extensions sample.

Bruce Chen
  • 17,123
  • 2
  • 14
  • 27
0

Alternatively (if you don't want to deal with DropBox API) you can build a logic app being triggered for example by HTTP request from your web job as DropBox connector exists:

https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-dropbox

J. F.
  • 71
  • 5