Skip to content

Downloads with invalid characters in the workbook name fail #165

@r-richmond

Description

@r-richmond

When downloading workbooks with a name like Option A or B? it fails with the error OSError(22, 'Invalid argument') on windows because question marks aren't allowed in file names. (Note: when downloading through the browser it converts characters like this to safe ones.. i.e. > becomes _)

Looking at the code I don't see an easy way to overwrite the downloaded workbook name.

Two Requests:

  1. adding an optional string parameter to set the downloaded workbook name.
  2. adding an optional boolean parameter to download the workbook name the way the browser / server handles it.

(One of these options should take precedence over the other as they are mutually exclusive but both options would be useful).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions