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 8648869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:25:00+00:00 2026-06-12T13:25:00+00:00

I would like to upload from a web browser a text/html string as an

  • 0

I would like to upload from a web browser a text/html string as an Azure blob directly to Azure storage (without first going thru the Azure VM/webserver) using browser side javascript. From my research, I understand that one can use Azure REST API + Shared Access Signatures to achieve this from a Silverlight client or thru an MVC 3 view. ( here is the link for controls using SilverLight/MVC3 : http://code.msdn.microsoft.com/silverlight/Silverlight-Azure-Blob-3b773e26#content). I also found a library for uploading using server side javascript with Node.JS https://github.com/jpgarcia/waz-storage-js .

My question is how would one upload a text string to an Azure blob using only browser side javascript and html and SAS (without using Silverlight or MVC) and do so directly to Azure without going thru the web server? How would one pass the string value to the Azure rest api call ( would it accept a JSON string?) ? I looked at the MSDN REST api examples but it was not clear to me how you would pass a text string to be uploaded. Can anyone help with this? Thanks in advance.

  • 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-06-12T13:25:01+00:00Added an answer on June 12, 2026 at 1:25 pm

    I don’t think this can be done. Unless the web page is being hosted from the same blob storage domain, this would be a cross-domain call, which isn’t allowed (unless CORS headers are set, which they aren’t for blob storage).

    In addition, uploading to a blob requires an HTTP PUT request, and I believe most browsers only allow POST and GET.

    UPDATE

    See comments below, but it looks like some browsers do allow PUT requests. As noted, the same-origin policy can be defeated by serving the original page from the same blob storage account. In that case, the code would look something like this (using jQuery):

    $.ajax({
        url: url,
        type: 'PUT',
        data: 'Hello, World!',
        headers: {'Content-Type': 'text/html'}
    }).success(function () {
        console.log('Saved successfully.');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to upload an image from an asp.NET Web Forms (4.0) application
I have a mobile web app/site and I would like the users to upload
I would like to upload files via FTP to the sites/default/sites directory in Drupal
I would like to upload files just like google mail does. I would want
I would like to upload a picture to Facebook event. I don't understand the
Hey. I would like to upload a file and then parse it. Because parsing
I've just finished a functional piece of code and would like to upload it
I would like recommendations for upload scripts/components. My criteria: No flash Plain Javascript ok,
I would like to have a nice easy to use file upload system on
I am doing an image upload handler and I would like it to detect

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.