In AttachmentHandler, isAttachment only triggers after the whole file is downloaded (to disk if its large). This can be a problem if downloading large files where it can take several minutes or even hours until isAttachment is triggered.
What is the recommended process for defining explicit waits for starting an attachment? My original idea was to trigger a flag when isAttachment is called, but that is not possible for large files as it waits until hundreds of megabytes are downloaded.
Seems like a deviation from other browser behavior, as Firefox can immediately tell if a file is an attachment from the response stream header.
I was also hoping I could directly write the attachment stream into a file without HtmlUnit creating the temp file, and then moving it to another location. A way to intercept the stream, check the header and redirect it if it is an attachment.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too