question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

blobService.createBlockBlobFromBrowserFile is not a function

See original GitHub issue

Running the following:

 var blobService = azure.createBlobService("key")
blobService.createBlockBlobFromBrowserFile(...)

Browser outputs error:

blobService.createBlockBlobFromBrowserFile is not a function at XMLHttpRequest.xhr.onload

Other blobService functions behave as expected…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
SogoGolfcommented, Jun 26, 2019

i thought one of MSFT’s goals is to be where developers are and provide efficient intuitive API’s (plenty of MSFT API’s are). Many developers currently use React for web. The V10 JS API is (at moment) terrible for React devs to get started with imho. I’ve wasted hours trying to get it working and all we need to do is upload an image to Azure Storage.

So - how do we, use this V10 library to get an image selected in the browser => up to Azure Storage?? And on this proviso that SharedKeyCredential is for some reason not supported in browsers.

A direct example would be helpful and I’m sure plenty others will benefit from it

0reactions
glv1at118commented, Apr 4, 2022

thanks @XiaoningLiu good to hear. I can’t get past the SharedKeyCredential issue to use the V10 SDK at all, so for now that’s the blocker. from a quick review of the code examples the only other thing that seemed odd was that pipeline setup & param. i took a look at the code sample you mentioned above (for Track2) but it still shows the use of pipeline ? I’ll keep an eye out for the preview + perhaps if you can drop a quick update here once its released that would be great, thanks.

There are lots of PRs needs to be merged yet, like Azure/azure-sdk-for-js#4058 (comment)

Hello! Do you know this JS browser API is compatible with ionic framework on mobile environment or not? Right now I’ve been building an ionic mobile app and it will need to upload file to Azure Blob. Will the “createBlockBlobFromBrowserFile” ever work on the mobile environment? Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

BlobService class | Microsoft Learn
Creates a new BlobService object. If no connection string or storageaccount and storageaccesskey are provided, the AZURE_STORAGE_CONNECTION_STRING or ...
Read more >
node.js - Azure Function NodeJS: blobService ...
I am new to azure functions and I am currently just trying to save an image as a blob to my storage. However,...
Read more >
Class: BlobService - Azure documentation
The Blob Service provides storage for binary large objects, and provides functions for working with data stored in blobs as either streams or...
Read more >
A brand new website interface for an even better experience!
blobService.createBlockBlobFromBrowserFile is not a function.
Read more >
Upload File with Progress from Browser to Azure Blob Storage
Allow CORS on Blob service for your domain. For demo, I just enable all origins and all methods. Please do not do this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found