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

fixes for brain ded control..

1 Answer 23 Views
CloudUpload
This is a migrated thread and some comments may be shown as answers.
Ray
Top achievements
Rank 1
Ray asked on 30 Nov 2013, 12:06 AM
As this looks like another telerik academic  ( red never gets fixed) issue..



Here are the steps to fix..

1. Copy code from everlive provider

 public string ApiKey { get; set; }
to AWS provider with tags
public string AccessKey { get; set; }

public string SecretKey { get; set; }

These need to a) take direct assignments, b) take config is set, or if none of the above use AWS dynamic keys..





2. Remove exception for null config, as this breaks AWS dynamic keys..


if (config == null)



            {



                throw new ArgumentNullException("No valid configuration is provided.");



            }
3. Good to go..


1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 03 Dec 2013, 04:28 PM
Hi,

The Everlive provider does have such a property, in the same manner as the Amazon provider has properties for the keys it works with. In all cases these keys are read from the web.config file (see this thread for the reason why).
What happens is that the file the end user selects is POST-ed to the handler CloudUplaod uses. This handler has to determine the used providers and their keys, in order to connect to the given cloud storage. Both providers work in the same way and do not take these keys from the control instance that calls them.
The idea that these keys should be available on a per-control basis is logged here.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
CloudUpload
Asked by
Ray
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or