-
Notifications
You must be signed in to change notification settings - Fork 564
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
$.download()
cannot detect file name in case of redirect
#2690
Comments
asolntsev
added a commit
that referenced
this issue
Mar 21, 2024
…Content-Disposition") Currently, it fails for HTTPGET method.
asolntsev
added a commit
that referenced
this issue
Mar 21, 2024
…redirect (without header "Content-Disposition") Fixed for HTTPGET method: now we detect URL of a last redirect, and extract filename from this URL.
Merged
asolntsev
added a commit
that referenced
this issue
Mar 21, 2024
* avoid using FilenameUtils.getExtension() because it throws "IllegalArgumentException: NTFS ADS separator (':') in file name is forbidden" - we don't need this check. Some of our tests do have filenames with forbidden characters. * instead, extract file extension with a simple regex.
asolntsev
added a commit
that referenced
this issue
Mar 21, 2024
…Content-Disposition") Currently, it fails for HTTPGET method.
asolntsev
added a commit
that referenced
this issue
Mar 21, 2024
…redirect (without header "Content-Disposition") Fixed for HTTPGET method: now we detect URL of a last redirect, and extract filename from this URL.
asolntsev
added a commit
that referenced
this issue
Mar 21, 2024
* avoid using FilenameUtils.getExtension() because it throws "IllegalArgumentException: NTFS ADS separator (':') in file name is forbidden" - we don't need this check. Some of our tests do have filenames with forbidden characters. * instead, extract file extension with a simple regex.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem
Given a link that redirects and downloads a file:
<a href="https://my.com/Jaxbeja">Download report</a>
Tell us about your environment
Configuration.fileDownload
:HTTPGET
Implementation details
GET "https://my.com/Jaxbeja"
The text was updated successfully, but these errors were encountered: