Skip to content

The logic for selection of Standard vs large file upload appears to be flawed #22

Description

@ClearviewLED

If my understanding is correct, the Backblaze LargeFileLimit is usually recommended to be 5GB, the recommededPartSize is suggested to be 100MB. Using the logic below to decide between uploadStandardFile and uploadLargeFile it appears that any file over 100MB will use the uploadLargeFile option. Whereas if my understanding of the Backblaze b2 API is correct only files above 5GB should use the large File methodology.

    if ($options['size'] <= $this->largeFileLimit && $options['size'] <= $this->recommendedPartSize) {
        return $this->uploadStandardFile($options);
    } else {
        return $this->uploadLargeFile($options);
    }

I believe my logic is correct but I am still learning both PHP and the Backblaze API.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions