Issues

Select view

Select search mode

 

cfhttp needs an option to download directly to disk

Duplicate

Description

cfhttp is lacking in one important aspect, and that is the ability to download directly to disk, bypassing memory. ATM if I download a file that I intend to write to disk (pdf, database backups, etc), they are loaded into memory then I fileWrite(). But I need to start downloading a 28GB database backup now, and this operation fails. SFTP is way too slow. This may be something you can take advantage of: https://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/FileUtils.html#copyURLToFile-java.net.URL-java.io.File-int-int-

relates to

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 19 April 2022 at 23:46
Updated 5 January 2023 at 10:08
Resolved 5 January 2023 at 10:08

Activity

Show:

Brad Wood2 January 2023 at 22:30

The “proper” fix for this is just for Lucee to copy Adobe CF’s behavior which works out of the box like you’d expect. I detailed it here:

John Wilson20 April 2022 at 10:39

Well done. I had no idea this existed. I also liked your idea about a new function here: , especially the async with a callback.

Flag notifications