Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6192049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:52:37+00:00 2026-05-24T02:52:37+00:00

Pretty new to Windows Azure. I’ve followed this tutorial: tutorial . It works perfectly

  • 0

Pretty new to Windows Azure. I’ve followed this tutorial: tutorial. It works perfectly however one limitation is that for the application I have in mind, it would need to be possible to upload multiple files relatively quickly.

Is it possible to modify the tutorial to support multi-file uploads, e.g. The user can use shift-click to select multiple files..

Or if anyone knows of any good tutorials detailing the above?

Any help is appreciated,

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:52:37+00:00Added an answer on May 24, 2026 at 2:52 am

    I’d take a look at this tutorial from DotNetCurry which shows how to create a multiple file upload using jQuery to handle the multiple uploading of files to an ASP.NET page. It’s built using ASP.NET 3.5, but it shouldn’t matter if you’re using .NET 4 – there’s nothing too crazy going on.

    But the key is that the jQuery plug-in will allow you to upload a collection of files to the server. The ASP.NET code behind will handle that by looping through the Request.Files collection:

        HttpFileCollection hfc = Request.Files;
        for (int i = 0; i < hfc.Count; i++)
        {
            HttpPostedFile hpf = hfc[i];
            if (hpf.ContentLength > 0)
            {
                hpf.SaveAs(Server.MapPath("MyFiles") + "\\" +
                  System.IO.Path.GetFileName(hpf.FileName));
                Response.Write("<b>File: </b>" + hpf.FileName + " <b>Size:</b> " +
                    hpf.ContentLength + " <b>Type:</b> " + hpf.ContentType + " Uploaded Successfully <br/>");
            }
        }
    

    You would put this code in your tutorial in the insertButton_Click event handler – essentially putting the blob creation and uploading to blob storage inside the above code’s if(hpf.ContentLength>0) block.

    So pseudo-code may look like:

    protected void insertButton_Click(object sender, EventArgs e)
    {
        HttpFileCollection hfc = Request.Files;
        for (int i = 0; i < hfc.Count; i++)
        {
          HttpPostedFile hpf = hfc[i];
    
          // Make a unique blob name
          string extension = System.IO.Path.GetExtension(hpf.FileName);
    
          // Create the Blob and upload the file
          var blob = _BlobContainer.GetBlobReference(Guid.NewGuid().ToString() + extension);
          blob.UploadFromStream(hpf.InputStream);
    
          // Set the metadata into the blob
          blob.Metadata["FileName"] = fileNameBox.Text;
          blob.Metadata["Submitter"] = submitterBox.Text;
          blob.SetMetadata();
    
          // Set the properties
          blob.Properties.ContentType = hpf.ContentType;
          blob.SetProperties();
        }
    }
    

    Again, it’s just pseudo-code, so I’m assuming that’s how it would work. I didn’t test the syntax, but I think it’s close.

    I hope this helps. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey I'm pretty new to c# and I'm sure that this isn't too difficult
I'm pretty new to the EDM, so bear with me. I have a windows
I'm pretty new to the idea of recursion and this is actually my first
Okay, so i'm pretty new to C++ & the Windows API and i'm just
I come from the Mac world, and am pretty new to Windows development. Very
I am pretty new to the windows phone stuff and programming for windows phone.
this is the code: Label[] labelxx = new Label[5]; this.Controls.Add(labelxx[0]); labelxx[0] = new System.Windows.Forms.Label();
I'm pretty new around WP/Visual C# and I'm currently making a project that involves
I'm new to REST and this sounds like it should be pretty simple. In
Possible Duplicate: Cannot find window-based application on XCode I am pretty new to IOS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.