Post by STARS » Wed Jan 11, 2017 9:55 am

Why would I need this ? well say I have a host that is low on resources. I can easily buy some very cheap limited hosts that are meant to be for download purposes. that way, I don't have to worry about the original host because it would never run out of resources because the download files are called from somewhere else.

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://stackoverflow.com/questions/3543 ... her-server
http://wordpress.stackexchange.com/ques ... 8129#78129

It would be so awesome if it could be integrated in Opencart.

New member

Posts

Joined
Thu Jan 08, 2015 2:10 pm

Post by paulfeakins » Wed Jan 11, 2017 6:54 pm

I'm not aware of any extensions that do this and to be honest if you're not a programmer, you will probably struggle to get this working.

One idea that springs to mind is if you have your own server with shell access, you could potential mount the remote server and then access it like it is a local folder.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by artcore » Wed Jan 11, 2017 8:08 pm

Hi STARS,
Is something like this what you had in mind?
https://www.opencart.com/index.php?rout ... er=artcore

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands
Who is online

Users browsing this forum: Semrush [Bot], Wade C and 48 guests