Skip to content

Firefox doesn't keep file extension during download (bug) #1103

@carlosspohr

Description

@carlosspohr

Hi there,

Today I got an issue with Firefox browser during file download through class FileDownload. This browser loses file extension after download when user uses the option to save file.

After some inspections at class mentioned above, I found what caused this 'bug'. At InputStreamDownload class at line 68, the correct expression for header would be:

Content-Disposition: attachment; filename="my-file.pdf'"

On that line, the expression is (wrong):

Content-Disposition: attachment; filename=my-file.pdf'

This one, works as expect for others browsers too, but, only on Firefox the file saved wont have his extension, forcing user to add his extension.

PS: It's a file without extension (unknown file extension) not about Windows option for hide it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions