This is a migrated thread and some comments may be shown as answers.

How to override BlobContainer in AzureProvider

1 Answer 86 Views
CloudUpload
This is a migrated thread and some comments may be shown as answers.
KDL
Top achievements
Rank 1
KDL asked on 09 Feb 2016, 09:37 PM

I am trying to use RadCloudUploader with Azure Media Services. I need to override the BlobContainer per uploaded file so that I can upload each into their own container in azure blob storage (due to the way Azure Media Services works). I have created a custom provider and custom upload handler but the problem is how to get the azure container name into the AzureProvider Initialize method.

Here is how the processing needs to work:

  1. Get Azure Media Services container name
  2. Upload each selected file into the correct blob container (name comes from step 1)
  3. Do some additional processing after each file has uploaded (database work, additional Azure Media Services API stuff, etc.)

Step 2 is the problem. I just need to be able to specify the container name (not the folder path, as per the Handler's SetKeyName override). Thanks for any help, I've been going a bit crazy on this one.

 

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 12 Feb 2016, 11:44 AM
Hi Kent,

I guess that you want to get the container name based on the user, so you could do in the pageload event and share this information into the Session state and access it into the handler. Please clarify if this is the case, otherwise please give us more details.

Regards,
Peter Filipov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
CloudUpload
Asked by
KDL
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or