Questions tagged [backblaze]

Backblaze B2 Cloud Storage is a cloud object storage service from Backblaze. Feel free to post questions about integrating your app with Backblaze B2 via its S3-compatible and native APIs. Questions about general Backblaze B2 support, functionality, configuration, etc. are off-topic.

Backblaze B2 is a strongly consistent cloud object storage web service offered by Backblaze. The Backblaze S3 Compatible API integrates with existing data management tools and S3 gateways; the Backbaze B2 Native API exposes all B2 functionality, including features such as account configuration which are not accessible via the S3 Compatible API.

References

Tutorials

50 questions
7
votes
0 answers

How to Get size of all files in a Directory in b2 storage of backblaze.com using backblaze-b2 of nodejs

Documentation is available here but shocking is that there is no api to get the directory size same as du command does in linux. https://www.backblaze.com/b2/docs this has api for files but none for directory size -…
Vishvendra Singh
  • 484
  • 5
  • 19
5
votes
1 answer

Backblaze B2 Native URL vs. Friendly URL - transaction caps?

I'm using B2 as a storage for the images on a website we develop. Due to the fact, there're millions of images to be served from B2 I'm wondering if there's a difference in using either native URL or friendly URL provided by B2 in terms of…
Goran Stoyanov
  • 2,311
  • 1
  • 21
  • 31
3
votes
1 answer

How do I list only new files via the Backblaze B2 API?

According to the b2_list_file_names documentation "This call returns at most 1000 file names per transaction" and you can use the nextFileName field to get the next 1000 files, and so on. It doesn't say in which order these files are returned, but…
Peter Jaric
  • 5,162
  • 3
  • 30
  • 42
3
votes
1 answer

How to convert FileStorage object to b2sdk.v2.AbstractUploadSource in Python

I am using Backblaze B2 and b2sdk.v2 in Flask to upload files. This is code I tried, using the upload method: # I am not showing authorization code... def upload_file(file): bucket = b2_api.get_bucket_by_name(bucket_name) file =…
Nomura Nori
  • 4,689
  • 8
  • 47
  • 85
3
votes
1 answer

Backblaze Storage B2 PHP Download with Authorization from Private Bucket

I'm sort of struggling to understand the documentation for BackBlaze B2, I want to download files from a private bucket using PHP, I know the file ID and I want to get authorization (like 30 seconds) and then generate a download link (Presigned?).…
Moarty
  • 31
  • 3
3
votes
1 answer

Backblaze B2 download with "presigned URL"

Situation: I run a Django app in the web, where logged-in users can also download .pdf files (non-public, with specific restrictions, depending on user rights). The most convenient way to do so (e.g. in S3) is to use a time-restricted, pre-signed…
2
votes
2 answers

Upload multiple files to BackBlaze according to the original filename

I'm trying to upload images to BackBlaze using backblaze-b2 npm module from a folder that has multiple images and for each image successfully uploading I push the fileId to an array all the files in the folder is named from 0001.jpg to how many…
2
votes
1 answer

Backblaze Slow Upload Speed

I'm using Backblaze for an e-commerce like website I'm building where I allow the user to upload a set of photos for a given product, I upload the image along with a scaled down thumbnail to BackBlaze, and store the URL in Firestore. The issue I'm…
stackiee
  • 195
  • 1
  • 8
2
votes
1 answer

File format not supported but when decoding it with base64 it works fine

Hello i'm having issue with uploading image to the cloud (Backblaze B2). The problem is, when I use the example Thunder client to upload the file everything works fine and file is shown. Now my problem is that when I upload with JS I don't know why…
Singh
  • 783
  • 1
  • 6
  • 24
2
votes
1 answer

Checksum Error while uploading files to BackBlaze (B2) using Ajax request

I have spent an awful lot of time trying to upload files to b2 using clientside ajax requests (vue-dropzone.js), and even though I supplied the file's valid sha1 checksum, the b2 server still responds with "checksum did not match data received" with…
2
votes
1 answer

Backblaze S3 Compatible API - Pre-signed URLs - Node AWS SDK not working

I am trying to get the new Backblaze compatible S3 API to work with Pre-signed URLs Code that I am using to generate the URL (original source): const aws = require('aws-sdk'); const s3 = new aws.S3({ accessKeyId: 'XXX', secretAccessKey: 'XXX', …
t16n
  • 223
  • 2
  • 11
2
votes
0 answers

BackBlaze S3 Api compatibility issues: Unable to create new bucket due to AmazonServiceException: not entitled?

With Java sdk i want to integrate my application with BackBlaze B2 cloud storage bucket but service replied with not entitled. What is the meaning of this? Unable to create new bucket due to AmazonServiceException: not entitled (Service: Amazon S3;…
yjsiddique
  • 41
  • 3
1
vote
1 answer

Upload TCPDF file to backblaze?

I'm building an API using Symfony and I am trying to upload a generated file directly in a Backblaze bucket. I'm struggling to build the request and send the file. Here is the code of my endpoint : $filename = "fiche-technique_".str_replace('…
1
vote
1 answer

Backblaze ListBuckets using AmazonS3 sdk in c# - fails to return any results

I'm trying to list my backblaze buckets in a console app in c#. I've followed the docs here: AmazonDocs but my app simply ends when trying to call : client.ListBucketsAsync(); in the GetBuckets method. It doesn't catch an error - it just stops. I'm…
John Smith
  • 21
  • 2
1
vote
1 answer

Use Backblaze B2 as Django Default Storage

I want to use Backblaze B2 to serve media files only in Django. I have used django-storages for that purpose, and as per it's documentation it support Backblaze B2. I used the below configuration in settings.py - INSTALLED_APPS = [ ............ …
Samiddha
  • 103
  • 1
  • 7
1
2 3 4