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

Fall back to filename from URL when don't have it in the header #39

Merged
merged 1 commit into from
May 8, 2022

Conversation

ant1k9
Copy link
Contributor

@ant1k9 ant1k9 commented Nov 17, 2021

In case we have a valid header, we'll try to get unsafeName from it but we cannot do it:

content-disposition: attachment

So, we fall back to a default case, getting the filename right from the URL and fix it, if we have a filename in the content-disposition.

In case we have a valid header, we'll try to get unsafeName from it
but we cannot do it:
  > content-disposition: attachment

So, we fall back to a default case, getting the filename right from the URL
and fix it, if we have a filename in the content-disposition.
@melbahja melbahja merged commit eac659f into melbahja:master May 8, 2022
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

Successfully merging this pull request may close these issues.

2 participants