In Wordpress there are some options in media that you can easily put the links of other host and then store your "uploads" folder in that cheap host.
Now I'm just wondering how I can do such a thing in Opencart. I couldn't find any options and I can't seem to find any solutions anywhere.
Just found these links and since I'm not a programmer I have no idea whether or not it's possible. all I know is it can be done through CURL but they never explained how to use it:
Code: Select all
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('file' => '@/path/to/file.txt'));
curl_setopt($ch, CURLOPT_URL, 'http://server2/upload.php');
curl_exec($ch);
curl_close($ch);
http://wordpress.stackexchange.com/ques ... 8129#78129
It would be so awesome if it could be integrated in Opencart.