Skip to content

Safari usage requires the User to Specify the blob type as "application/octet-stream" #37

Open
@anthony-ngu

Description

@anthony-ngu

Was this by design?

I've noticed that the usage of FileSaver.saveAs(blob, filename) where the blob does not specify a type will cause the "force" variable to render as false. This will mean that Safari does not properly handle downloading files.

Just wondering if as a user, we're expected to handle for Safari by detecting the browser and setting the type to match "application/octet-stream". It turns out that you can't set it on the blob variable due to its read only properties.

What was the purpose of the force variable? Shouldn't it always handle properly for Safari?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions