Any guidelines to use AsyncUpload with Azure and Blob Service?

19 posts, 1 answers
  1. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 21 Jun 2012 Link to this post

    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.
  2. Answer
    Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 26 Jun 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 26 Jun 2012 Link to this post

    Thank you Peter for clarification;
  5. Jason
    Jason avatar
    20 posts
    Member since:
    Nov 2011

    Posted 06 Sep 2012 Link to this post

    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
  6. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 06 Sep 2012 Link to this post

    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
  7. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 11 Sep 2012 Link to this post

    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.
  8. Shawn Krivjansky
    Shawn Krivjansky avatar
    86 posts
    Member since:
    Jan 2010

    Posted 31 Oct 2012 Link to this post

    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.
  9. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 02 Nov 2012 Link to this post

    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.
  10. Paul
    Paul avatar
    14 posts
    Member since:
    Sep 2011

    Posted 01 May 2013 Link to this post

    Peter,

    Do you by any chance have a downloadable sample project illustrating custom handlers and Azure blob storage?
  11. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 01 May 2013 Link to this post

    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.
  12. Paul
    Paul avatar
    14 posts
    Member since:
    Sep 2011

    Posted 01 May 2013 Link to this post

    Thank you for the prompt reply. Will this OOB functionality be available in the next release?
  13. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 01 May 2013 Link to this post

    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.
  14. Chris Honselaar
    Chris Honselaar avatar
    12 posts
    Member since:
    Apr 2009

    Posted 08 Jun 2013 Link to this post

    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..
  15. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 10 Jun 2013 Link to this post

    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.
  16. Chris Honselaar
    Chris Honselaar avatar
    12 posts
    Member since:
    Apr 2009

    Posted 10 Jun 2013 Link to this post

    Thanks, but the 'workaround' in that thread is not helpful for big transfers or typical Azure multi-instances scenarios.
  17. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 13 Jun 2013 Link to this post

    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.
  18. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 17 Oct 2013 Link to this post

    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.
  19. richard
    richard avatar
    48 posts
    Member since:
    Dec 2010

    Posted 06 Mar 2014 Link to this post

    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?
  20. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 11 Mar 2014 Link to this post

    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.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017