Upload and Manage Files
    • Dark
      Light

    Upload and Manage Files

    • Dark
      Light

    Article Summary

    You can use the Backblaze web UI to upload files, share files, download files, and delete files.

    Using the Backblaze web UI, you can upload any individual file on your computer to Backblaze B2 Cloud Storage as long as it is between 0 bytes and 500 MB. The maximum single file size that you can upload using the Command-Line Interface (CLI) or the Native API is 5 GB. For files that are larger than 5 GB, see Large Files.

    To delete all files in a bucket using the command-line interface, click here.
    To delete files using Lifecycle Rules, click here.
    To delete a bucket, click here.

    Upload a File

    You can upload files to a Backblaze B2 bucket from your local drive. The maximum single file size that you can upload through the Backblaze web UI is 500 MB. If you need to upload larger files, click here for more information. You can also use the B2 Native API or the Command-Line Interface to upload files.

    1. Sign in to your Backblaze account.
    2. In the left navigation menu under B2 Cloud Storage, click Buckets.
    3. In your bucket details, click Upload/Download and click Upload.
    4. Drop your images from your local drive into the dialog box, or manually select your files.
    5. In the left navigation menu, click Browse Files to see your uploaded file and click the image filename to see more details.

    File Details

    You can view the following details after your file is uploaded.

    NameFile name
    Bucket NameUnique bucket name
    Bucket TypeFile visibility in Backblaze B2 is set on the bucket rather than the file. Possible values are private and public.
    If you set this value to public, the file is accessible using any of the three URLs without any credentials. Public buckets are never publicly writable; only publicly readable. You need appropriate credentials to upload files to the bucket.
    If you set this value to false, only the bucket owner can access the bucket.
    Friendly URL
    S3 URL
    Native URL
    If your bucket is public, you can click any of these three URLs to view the image. In general, it is easiest to use the Amazon S3 URL in the format https://<bucket name>.<endpoint>/<file name>.
    KindType of file, for example, image/png
    SizeFile size, for example, 79.6 KB
    UploadedDate and time the file was uploaded
    FguidFile version's unique identifier within Backblaze B2. This is the same value that is in the fileId query parameter in the Native URL.
    Sha1SHA-1 digest of the file content. The digest is useful to verify that the file was not corrupted in transmission.
    File InfoSet of up to 10 key-value pairs that hold user-defined metadata for the file. In the following example, the Backblaze web UI set src_last_modified_millis to the last modified time of the uploaded file on your local drive, a few minutes before it was uploaded.
    src_last_modified_millis: 123456789123 (12/15/2022 14:04)
    File Information corresponds to Amazon S3's user-defined object metadata. It is returned with x-amz-meta- prefixed HTTP headers when getting the file using its Amazon S3 URL:
    % curl -I
    https://my-unique-bucket-name.s3.us-west-004.backblazeb2.com/my-sample-image.png
    HTTP/1.1 200
    Accept-Ranges: bytes
    Last-Modified: Wed, 20 Jul 2022 21:18:44 GMT
    ETag: "94ef3ecd9772a6dd5d4bdaebddce6a16"
    x-amz-meta-src_last_modified_millis: 1658351049017
    x-amz-request-id: a2286d690971ff97
    x-amz-id-2: aM7Vk6DhsMVhmSTaDN1g4DmI7OB80nzMB
    x-amz-version-id: 4_ze30d68217f1617d88b280413_f10477368fe8fd6f1_d20220720_m211844_c004_v0402004_t0001_u01658351924129
    Content-Type: image/png
    Content-Length: 79571
    Date: Wed, 20 Jul 2022 22:07:18 GMT
    EncryptionThis is the value that you saved above.

    Download Files

    To download large files using the command-line interface, click here.

    1. Sign in to your Backblaze account.
    2. In the left navigation menu under B2 Cloud Storage, click Browse Files.
    3. Select the files that you want to download.
    4. Click Download.
    5. Click I'm Sure. Download Files!

    Share a File

    Before you begin: To share a file, you must have a Backblaze B2 Cloud Storage account. For more information about enabling Backblaze B2 click here.

    1. Sign in to your Backblaze account.
    2. In the Computer Backup menu, click View/Restore Files and scroll down to the file tree.
    3. Locate and select the folder that contains the file that you want to share.
    4. Select the file that you want to share, and click Share with Link.
      The file that you share is public and anyone can access the file using the direct link.
    5. Click Copy, and share the URL.
    6. To delete a shared file, click My Shared Files in the Computer Backup menu and select the file that you want to delete.
    7. Click Delete, and click Yes, I'm Sure!

    Delete Files

    1. Sign in to your Backblaze account.
    2. In the left navigation menu under B2 Cloud Storage, click Browse Files.
    3. Select the bucket that contains the files that you want to delete.
    4. To delete one or more files, select the checkboxes next to the files that you want to delete.
    5. To delete all of the files that are in the bucket, select the checkbox next to Name.
    6. Click Delete, and click I'm Sure. Delete Files!
    Notes
    You can also delete all of the files in a bucket using Lifecycle Rules.

    If you have a very large number of files to delete, you may want to use the Backblaze APIs.

    Was this article helpful?