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

Any guidelines to use AsyncUpload with Azure and Blob Service?

18 Answers 336 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Ben Hayat
Top achievements
Rank 2
Ben Hayat asked on 21 Jun 2012, 09:34 PM
Hello Team;

I plan to build an ASP.Net Ajax using Telerik Ajax controls that runs in Azure. It will use Azure SQL for it's database and for all the images that needs to be stored, I will use Azure Blob Service.

I would like to know if there are any differences between a "Server Centric" and "Cloud Centric" when it comes to the AsyncUpload, in particular where the temp files are stored. and then transferring them to Blob.
Is there ant docs or samples or info available?

Thank you in advance.

18 Answers, 1 is accepted

Sort by
0
Accepted
Peter Filipov
Telerik team
answered on 26 Jun 2012, 01:42 PM
Hello Ben,

I am writing to inform you that our controls are supported under Azure. There should be no problem to store the uploaded files. I am not quite sure what you mean by Server Centric and Cloud Centric. In case that server centric means that your application will be handled only by one server there is no problem by setting a temporary folder. In case that cloud centric means that the load to your application will be handled by many machines your temporary folder should be a shared folder.
RadAsyncUpload control does not provide direct integration with Azure Blob service. For that case you need to send the uploaded file manually. FileUploaded event is fired for every uploaded file. In the server event handler you can access the file and send it to your storage.

Kind regards,
Peter Filipov
the Telerik team
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 their blog feed now.
0
Ben Hayat
Top achievements
Rank 2
answered on 26 Jun 2012, 01:58 PM
Thank you Peter for clarification;
0
Jason
Top achievements
Rank 1
answered on 06 Sep 2012, 06:14 PM
Hi Peter,

I'm am looking at using the AsyncUpload control in an Azure WebRole. You said that the temporary folder should be a shared folder. How do I set this up? I don't believe that Azure supports shared folders among WebRole instances? I'll be running 2+ instances of the WebRole and it sounds like uploading will fail because some chunks will save on server 1, some on server 2 and the FileUpload event will fire on, say, server 2 but will be missing all of the chunks stored on server 1.

Thanks,
Jason
0
Ben Hayat
Top achievements
Rank 2
answered on 06 Sep 2012, 06:34 PM
Hi Jason;

This is one of the points that I've been thinking about using Azure [farm] server system that could affect the uploading process. Another point that I wanted to share with you to watchout for is using "Session Variables" in Azure. This will also will cause you problem. Best to use an Azure service to server foor Session Variables.
Hope this helps.
..Ben
0
Peter Filipov
Telerik team
answered on 11 Sep 2012, 10:03 AM
Hi Jason,

I found you the following post how to enabled shared folders in Azure. We are going to test it further. After that we are going to create a help article for the topic.

Kind regards,
Peter Filipov
the Telerik team
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 their blog feed now.
0
Shawn Krivjansky
Top achievements
Rank 1
answered on 31 Oct 2012, 11:23 PM
Any movement with a help article on this?
Or, better yet...  any plans to improve the control, so we don't have to go through these kinds of hoops?

Just seems like a HUGE PITA to create the "shared folders" in order to get this to work.  Even just looking at the comments there are issues...

Would be SOOOO much better if the "Temp File" piece could be azure friendly.
I would say NOBODY (or very very few) would even consider attempting the TEMP FILE scenario in a WEB FARM on Azure given everything it takes.
0
Peter Filipov
Telerik team
answered on 02 Nov 2012, 11:20 AM
Hello Shawn,

For the upcoming release - Q1.2013 we are going to make a deeper research and documentation related to the topic will be posted.
Until then here is the solution that could be made:
1. Set DisableChunkUpload to true. By setting that property the files will be uploaded with one request. For example when a Custom Handler is used and the Process method is overrided the uploading file is not saved to the Temporary folder.
2. Keep in mind that the maximum size of the request in ASP.NET is 4MB (default value). In order to upload larger files please set the following setting in your web config.

All the best,
Peter Filipov
the Telerik team
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 their blog feed now.
0
Paul
Top achievements
Rank 1
answered on 01 May 2013, 02:21 PM
Peter,

Do you by any chance have a downloadable sample project illustrating custom handlers and Azure blob storage?
0
Peter Filipov
Telerik team
answered on 01 May 2013, 02:26 PM
Hi Paul,

We are currently working on such feature of the RadAsyncUpload control to be out of the box. Unfortunately  we do not have an example with custom handler and Azure blob storage.

All the best,
Peter Filipov
the Telerik team
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 their blog feed now.
0
Paul
Top achievements
Rank 1
answered on 01 May 2013, 02:43 PM
Thank you for the prompt reply. Will this OOB functionality be available in the next release?
0
Peter Filipov
Telerik team
answered on 01 May 2013, 02:50 PM
Hello Paul,

We are doing our best to introduce upload to Azure and Amazon S3 for the upcoming release - Q2.2013.

Regards,
Peter Filipov
the Telerik team
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 their blog feed now.
0
Chris Honselaar
Top achievements
Rank 1
answered on 08 Jun 2013, 12:30 PM
I just downloaded the Q2 beta and looked at the beta information page, but I cannot find any evidence of S3/Azure support? Will this make it in? I sure hope so, this is becoming very urgent..
0
Peter Filipov
Telerik team
answered on 10 Jun 2013, 07:50 AM
Hello Chris,

In order to upload files to cloud storage we decided to create a new control which is called RadCloudUpload. The new component will be with high priority in our road map for Q3.2013. Here you could give us some feedback.
Until then you could use the approach described here.

Regards,
Peter Filipov
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.
0
Chris Honselaar
Top achievements
Rank 1
answered on 10 Jun 2013, 01:42 PM
Thanks, but the 'workaround' in that thread is not helpful for big transfers or typical Azure multi-instances scenarios.
0
Peter Filipov
Telerik team
answered on 13 Jun 2013, 11:11 AM
Hello Chris,

When you are in web farm scenario you need to set the TemporaryFolder to be a shared folder. Then you could use the approach described here.

Regards,
Peter Filipov
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.
0
Peter Filipov
Telerik team
answered on 17 Oct 2013, 12:44 PM
Hi,

RadCloudUpload control is available with Q3.2013. Please take a look on the following demo.

Regards,
Peter Filipov
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.
0
richard
Top achievements
Rank 1
answered on 06 Mar 2014, 07:59 PM
I dont understand how you use RadCloudUpload. how do you set the blob name so you can get a "directory" like structure in Azure? i.e. 
http://mysite.blob.core.windows.net/<container>/<subfolder>/<subfolder/fileName

How do you give it the subfolder paths?
0
Peter Filipov
Telerik team
answered on 11 Mar 2014, 10:46 AM
Hello Richard,

The SubFolderStructure property adds slashes to the name of the uploaded file. This is useful when you use file explorer to review the files (e.g. CloudBerry Explorer for Azure). Here is how it could be set: "myPics/cars".

Regards,
Peter Filipov
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Tags
AsyncUpload
Asked by
Ben Hayat
Top achievements
Rank 2
Answers by
Peter Filipov
Telerik team
Ben Hayat
Top achievements
Rank 2
Jason
Top achievements
Rank 1
Shawn Krivjansky
Top achievements
Rank 1
Paul
Top achievements
Rank 1
Chris Honselaar
Top achievements
Rank 1
richard
Top achievements
Rank 1
Share this question
or