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

Uploading Duplicated?

1 Answer 97 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
TheLostLeaf
Top achievements
Rank 2
TheLostLeaf asked on 20 May 2011, 08:30 PM
Hi,

I have the async upload working in grids, with saving to disk, sql or Azure. Everything works great.

 When I upload to Azure though, it seems the progress bar is for the progress of the temp file going to server, then it takes the same amount of time with the blinking yellow light, to complete the upload to Azure.

Is this normal? Or can I bypass the temp file going to the web server and go straight to Azure ?

Thanks
Eric

<telerik:RadAsyncUpload  runat="server" ID="RadAsyncUpload1"  
                       OnClientFilesUploaded="filesUploaded" HttpHandlerUrl="~/AzureHandler.ashx"
         MultipleFileSelection="Automatic" Width="300px">
             
   </telerik:RadAsyncUpload>
public class AzureHandler : AsyncUploadHandler, System.Web.SessionState.IRequiresSessionState
   {
       protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
       {
          SampleAsyncUploadResult result = CreateDefaultUploadResult<SampleAsyncUploadResult>(file);
          SampleAsyncUploadConfiguration sampleConfiguration = configuration as SampleAsyncUploadConfiguration;
           string container = null;
           if (sampleConfiguration != null)
           {
               container = sampleConfiguration.ContainerName;
               result.ImageID = InsertImage(file, container, sampleConfiguration.MetaTags);
           }
           // Populate any additional fields into the upload result.
           // The upload result is available both on the client and on the server
             
           return result;
       }
       public int InsertImage(UploadedFile file, string containerName, string metaTags)
       {
           AzureAcess.UploadToCloud(containerName, file, metaTags);
           return 0;
       }
   }

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter Filipov
Telerik team
answered on 25 May 2011, 05:00 PM
Hello Eric,

Thank you for contacting Telerik Support.

Straight to your question. Yes, it is normal. Unfortunately, it is not possible to bypass the uploading file straight to Azure.

I hope this helps. Please let me know if I can assist you further.

Regards,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
AsyncUpload
Asked by
TheLostLeaf
Top achievements
Rank 2
Answers by
Peter Filipov
Telerik team
Share this question
or