[QUESTION] Download helper and remote path |
Hi,
my question is: Why if i use download helper to download a file from a remote path it don't work? Some of you have ever had this issue? Can you suggest me some workaround? Thank you so much, have a nice day.
I mean download a file from a remote host, (different by the one from where the function is called) e.g:
https://www.foo.com/path/to/download/file That not work and i absolutely need to download some files in this way. The site from where i intend to download files work on code igniter too.
Well the download helper can't help you with this, because
A. The data that needs to be downloaded should be passed to the function B. The data that needs to be downlaoded is already on the file system. The force_download function does not handle the downloading of remote files. You will need to create your own function that uses cURL to request the file
|
Welcome Guest, Not a member yet? Register Sign In |