Downloading images from FTP links? (Connecting to FTP server)
-
Hello,
I would like to ask if it is possible to download images that are located on ftp server, for example:<item_image>ftp://data.domain.com/products/1BA1000/b_0_27ae2.jpg</item_image>
I’m interested in 2 things, does WP All Import support downloading images from FTP and second, since the ftp links are password protected, I thought about creating a FTP connection before import start in function editor. Here is the screenshot of code I tried to use:
But this doesn’t work, here is the log:
WARNING: File ftp://data.domain.com/products/1BA1000/b_0_27ae2.jpg can not be downloaded, response O:8:"WP_Error":2:{s:6:"errors";a:1:{s:19:"http_request_failed";a:1:{i:0;s:34:"Invalid URL specified.";}}s:10:"error_data";a:0:{}}
Thank you very much for help.
- The topic ‘Downloading images from FTP links? (Connecting to FTP server)’ is closed to new replies.