Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlosspohr opened this issue Dec 8, 2017 · 0 comments
Open

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

carlosspohr opened this issue Dec 8, 2017 · 0 comments

Comments

@carlosspohr
Copy link

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.

carlosspohr added a commit to carlosspohr/vraptor4 that referenced this issue Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant